Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Website URL

Profile Information

  • Gender
    Not Telling
  • Location

Recent Profile Visitors

3,240 profile views

ngrmm's Achievements

Sr. Member

Sr. Member (5/6)




Community Answers

  1. @kater do you have more than one language installed but not activated? And give it a try and replace the title field with another text field,
  2. I write vanilla css. Well thats a lie 🙂. I write scss, but only because of lacking css nesting support. I guess in 1-2 years there should be a browser-support over 95%. Nesting is the only scss-feature i use. Everything else is vanilla css. Compiling scss to css is done by ProCache. I'm not a real programmer and have design/art background. Therefore i try to keep my workflow as simple as possible. In my projects I have to develop some „unusual“ layouts and many times the designs change a lot during the development. Therefore over the years the following distribution of files has worked for me pretty well. _reset.scss _fonts.scss (@font-face and sizes as classes) _globals.scss (color-variables, animation-classes and other global classes) _main.scss (for body and main element if needed) _header.scss _footer.scss m_component-name.scss … p_template-name.scss … I don't use components, but my section/article tags have always a unique classname, which correspond with the related php/css/js files. For Example for a image-slider i would have there three files: m_image-slider.php m_image-slider.scss m_image-slider.js .m_image_slider { width: 100%; } Should there be a need to overwrite some styles on a „project“ template, I can do that in a file like p_template_project.scss body.template_project { .m_image_slider { width: 50%; } } And if there is a need to have two different layouts for the image slider on two pages with the same template, I use the page ID. body.id_1234 { .m_image_slider { width: 80%; } } Therefore my body tag has always these two classes: <body class="id_<?= $page->id; ?> template_<?= $page->template; ?>"> That workflow helped me a lot to save time. Most of the the only my section tag has a classname. .m_image_slider { h2 { } figure { img { } } } What I want to say is that css methods have their justification and use. I do not work in teams and as single programmer it is much clearer and flexible to develop my own small method.
  3. Which syntax is need for this? // field names: // field_1 // field_2 // field_3 // … for ($i = 1; $i <= 40; $i++) { if($page->field_{$i} == 'test') { // this does not work // do stuff } }
  4. Is it a field inside a repeater matrix? Sometimes you need to save the repeater field again, after changing the ck-editor-configs.
  5. Not a real fix, but you could activate these two options: Remove empty paragraph texts Remove non-breaking spaces You find them inside the input-tab of your field > Beautify Markup Toggles I had the same issue with imported text from an API. They were using pseudo-elements inside empty headline tags as visual spacers.
  6. @snck had the same problem. And found out, that podigee-player is DSGVO compliant. At least they say it here. Bu I usually use a div wrapper for iframe embeds, so the classes do not get mixed up or replaced. But there is no way if you have to use the script tag.
  7. @poljpocket But even if i manage to give them access to the right pages. Once they are there, they would see the adminbar …
  8. @jensweigel thanks for the detailed explanation. In the latest version of RepeaterMatrix you have the option to copy&paste matrixItems across the entire page. Even if the pages has two different templates. You just need the same RepeaterMatrix field. But I can also understand how you create the structure. And with restricting template usage for children there should be no irritation for customers, right?
  9. let's say I would use LoginRegisterPro to be on the secure side. There is still the issue on how to edit existing page image fields, without the giving any edit permissions. @flydev There is a page with an image field with some uploaded images. How can you offer en edit form to delete the uploaded images and add some new images? I know that a loggedin user (via LoginRegisterPro, with no backend page-edit permission) is able to edit his own profile page on the frontend. An image field on the profile page would be editable with the help of InputfieldFrontendFile. But I was not able to figure out on how to extend this editing possibility to other templates. Ryan mentioned in another thread that the modules section on processwire.com works that way. An regarding giving access to pw-backend: my problem here is, that a user with edit permission can view the page-tree, use the backend search field, … I would like to only allow editing those pages, which are related to users and nothing else.
  10. Actually I will use FormBuilder. The form will create pages. And I will use hooks to generate an email after the page is saved and send it to the user (just guests). In the email the user will find two links. One for deleting the created page and one for editing. The edit link will have the guest email and a random alphanumeric string as url segments. This way they will be able to only edit „their“ pages When they click this link, they would see a form which is already populated. This works with text fields or checkboxes. My Problem are image fields. I do not want the user to have any edit roles or some kind of backend access.
  11. Could you describe this method in more detail? Maybe screenshots from the backend?
  12. thanks @Juergen for the quick response! Maybe I'll try this: integrating existing images as multi-checkboxes. And an upload field for the new ones.
  13. Hi @Juergen is there a way to mimic setDefaultValue() for images fields? I would like to use your module for editing existing pages in frontend and it would be great to be able to edit and delete existing images and add new ones.
  • Create New...