Jump to content

diogo

Moderators
  • Posts

    4,296
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by diogo

  1. Try: $pages->count("has_parent=$child, template=tops, projekt_top_vermietet=1") notice that I changed the single quotes to double quotes, so the variable inside them can be evaluated.
  2. You couldn't use that action anymore, since you're not be adding each file to an image field, but instead you'll be adding a new item to a repeater field AND adding the image to a field in that newly created repeater item. You can copy that action to create a new action that does that. Looking at the code of that action https://github.com/adrianbj/ProcessAdminActions/blob/master/actions/FtpFilesToPage.action.php, in the defineOptions() function, and assuming that the existing 'field' option would hold the repeater field, you'd need to create a new 'image_field' option to hold the image field inside the repeater. Then you'd need to update the code inside the executeAction() function to create the repeater items. In line 78 you'd have something like (written on the knee and not tested): $newItem = $destinationPage->$fieldName->getNew(); $newItem->$imageFieldName->add($item->getPathname()); $newItem->save();
  3. I was thinking: "Ideally you would be able to drop all images in a repeater field, and it would a repeater page for each image, and upload each of them to a predefined field in that repeater"... then I just decided to google for it, and found this https://processwire.com/modules/repeater-images/ I'm surprised that I never came across this module by @Robin S, but it looks just awesome ?
  4. Have a look at Media Manager, by @kongondo. It has a cost, but it manages images as pages so you'll be able to add ant kind of field to an image. https://mediamanager.kongondo.com/
  5. @fruid I'm glad the module was useful for you ? I'm not planning to update the module, since I offered an alternative that I consider superior: I think you solved the situation well for your use case. I would advise you to simply change the class and file names of your customised version to prevent any unwanted update. I don't have time to look at it at the moment, but you could also add one more optional parameter to the short tag for the size of the image, and trigger the resizing with the passed value only if it exists. If you wish to share your changes, feel free to create a fork or submit a pull request. Whatever you prefer ?
  6. diogo

    PHP 8 released

    $country = $session?->user?->getAddress()?->country; love it ?
  7. Is Counting a text field? I imagine you want to do something like: "some text $articles some more text". If so, you can use the Hanna Code module, or even a simple string replace, by preparing the text in the field with a placeholder tag: "some text {articles count} some more text", and in your code: <h3><span class="counter"><?=str_replace("{articles count}", $articles, $counter->Counting)?></span><span class="plus-icon">+ </span></h3>
  8. Quite a late answer, sorry. Yes, the module doesn't interact at all with access control. You would have to do that yourself inside the template file, by creating a new permission, and throwing a 404 or printing a custom message to unauthorised users. Dealing with the menu is a bit more tricky, since, the nav uses $page->viewable(), and that's at template level, being that our template would always be "admin". I guess you could simply clone the admin template and set the permissions on that one.
  9. Hi @antpre, The module doesn't do anything concerning this, it only works from the moment you are looking at that page. The place where those pages are shown in the menu is only dependent on where you place them in the tree. Try moving the page from inside the "setup", one level up, into the "admin" page. Now it should be showing as a main item in the nav. If you now place in inside the "pages" page, it will show as a subpage of that manu item. I hope I understood your problem correctly.
  10. You can find all the elements that are wider than the window by adding the code here to the console https://gist.github.com/cuth/c1ddf2b1ce2fb07e512a. One of those should be the cause for the scrollbar.
  11. @desbest The answers to your questions are on that very same post: and
  12. As an alternative to the image tags, you could use the new image custom fieds https://processwire.com/blog/posts/pw-3.0.142/
  13. Hi @dr Dogma, welcome to the forum! Head to the tutorials page, and read and try as much as you can there. https://processwire.com/docs/tutorials/ Then, you can come back here and post the doubts that you still have. Later, I'm afraid, you'll also need to make an effort to write in a more organized way, so people will be able to understand you. Good learning and good luck!
  14. It's working nicely for me on the newest dev version of PW. Did you change the process on the admin page from "ProcessHome" to "ProcessHomeReplace"?
  15. @EyeDentify I think @JeevanisM was referring to this:
  16. diogo

    ED works new site

    Thanks Jonatan! It's so great to receive such compliment ?
  17. Maybe you should have a look at this module http://www.99lime.com/modules/recurme/. I've never needed to use it, but always kept an eye on it in case one day I would. Seems very well put up. Also check the new Login Register Pro by Ryan https://processwire.com/store/login-register-pro/. Might help you a lot i n case you decide to build all the user interaction in the frontend.
  18. Ok, my bad. Still, reporting post serves a completely different purpose. Hopefully this will be picked up by someone that can address the issue, but the best is to post the issue on github. You would have to create an account there, and of course that's up to you, but you don't need to use git to do it, only fill a form on the site.
  19. I didn't ask you to not post in the forum, you should feel free to do so. I asked you to not report your own posts to the moderators.
  20. Please abstain from reporting your own post to call for attention. If you have an issue that you want resolved, report in on github and it will be addressed just as all other issues. https://github.com/processwire/processwire-issues/issues
  21. For some reason the instructions above were not working for me. After some googling I found this tool https://instagram.pixelunion.net/. f you're comfortable with trusting them, it works perfectly.
  22. I use mostly google keep for taking notes because it's really convenient, but I use Typora for writing on my mac. If all you want is to have your notes on a directory and have them searchable, Typora is actually perfect. I can also attest that nvALT is a great option, especially if you use it with simplenote to keep the notes synchronized through devices.
  23. diogo

    ED works new site

    Thanks @Macaco (very funny name by the way)! Makes us even happier that this is one of your two only posts ?
  24. It's in the context menu. Just right click the password input field and you'll see it.
×
×
  • Create New...