Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. Wanted to ask the same. Only way I see is use a page with a text field to enter a path to a php file. Then use that field as in the url tag in the item template. I.e. href='{pathphp|url}'
  2. Well InputfieldSelect already has support for optgroups. If the label is an array.
  3. No idea, no it shouldn't. Then in the editor it would also have a wrong url in the file field.
  4. All is in the cheatsheet and website docu is years old but still actual and valid (we are working on it continually). (I can update a 2.3 install to latest and it still works).The API doesn't change and there's a version number on each entry and if it's deprecated it will show as such. It's only that some of newer API (only few) are not yet in the cheatsheet, like many other hidden API that's not meant for the cheatsheet officially.
  5. This would be the urls to the folder not the image itself, it's because you were outputing the $page->field->url and not the image because it was an array.
  6. I've created the cheatsheet and there's a extended view of it. The idea is, that there would be more extended description and examples along with deprecated, introduced version etc. It's a work in progress and it's slowly going forward. This was built already 2 years ago. I just fixed a bug that wouldn't show it to the public and many API entries are not yet worked on. Cheatsheet and Extended docu is built on PW! We are a small team that has access to the cheatsheet PW backend. But practically anything would be possible to make this even more a place where dedicated people would be able to contribute. We're just not yet sure how. A good example would be http://cheatsheet.processwire.com/files/image-properties-in-addition-to-those-in-file/image-width/
  7. What url does it output? It may your file field is multiple, then AnimalSound would be an WireArray.
  8. The load and setup hooks you could put in _init.php but the render would be where you render your navigation.
  9. You're missing the /site/templates/home.php You only modify the url the echo $yourpost->url would output thus leading you to the modifed url off root. But the system or the root doesn't know about that, it looks for a /pagename/ but it doesn't exists so you have to implement it and capture the urlSegments etc. This is common thinking that a hook will change PW's routing but it doesn't. It just modifies output of the page's url.
  10. https://processwire.com/talk/topic/11069-sorting-images-in-backend/?fromsearch=1
  11. Not possible. But you can set automatic page name format on your PageTable field setting under tab input, and not on the parent template family settings. That's only for none or for all templates in the pagetable field. But I guess it doesn't matter.
  12. This has been subject to some threads. If I search the forum with your thread title I can find some solutions.
  13. Maybe you can give more information where this error happens? I just installed and tested it on a 2.6.18 and works fine. Note: BTW you shouldn't install a module with the folder name you get from github: somatonic-ColorPicker-3198273192 .... It's always best to install through ModulesManager or through core Modules New with Classname. "FieldtypeColorPicker"
  14. What I would try is install a fresh PW with intermediate profile and edit images, and see if it happens. If not, it may some problems of you're install, third-party module or your own code somewhere. 99% of the cases when such things happend it was a fault of myself or another module and not PW. I've never experienced image saving problems, unless I made my own image field. I remember someone having same problems, so a search turns up: https://processwire.com/talk/topic/3363-image-field-description-not-saving/ Coincidence that there same issue and no solution with a user Ovi?
  15. Session Login Throttle doesn't prevent multiple logins with the same user. It's to prevent dictionary attacks, so when someone trying to login 3 times with same username but wrong password.
  16. Only you have to keep in mind that it doesn't scale if you do this for more and more pages. Also note that if only counting a $pages->count(selector) is more efficient. Instead of $pages->find()->count What I do on a shop category tree, is calculate it every time a product is saved and write the count to a integer field on the category pages. So it's like cached. You could also use markup cache to cache the output and only let rebuild it when a product is changed.
  17. I'm having problem with this module not using translations in template __("Text"). It's always default language for those strings. Ah sorry, I forgot that the pages2pdf template aren't translated yet
  18. No not *. If as custom code for a page select you need to use role id.
  19. I see, I'll maybe have a look into but will maybe take some time. It's always a lot of work update a module with readme etc, but will put on my list. For now I think a better approach would then be this to replace the UL wrapper class, "MarkupSocialShareButtons", with your own class or extend it: $content .= str_replace("MarkupSocialShareButtons cf", "myClasses", $modules->MarkupSocialShareButtons->render());
  20. Outer wrapper? There's none, just an UL So what I do if needed is like: echo "<div class='wrapper'>"; echo $modules->MarkupSocialShareButtons->render(); echo "</div>";
  21. I found there's some issues with pages changing values that are used on rules for a dynamic role. It's when I have a filter viewable that says: "on the parent of this page the value on a page select must match, then the user can view the page", as soon as I start change value on that parent page field, subpages won't get updated to reflect this. But they are rebuilt when I change and save the dynamic role. I guess that's by design that it doesn't check for children/parent relations. Which is limiting to how I was trying to use dynamic roles.
  22. To my understanding, view access to admin isn't handled by the admin template. It's just that it has no guest view access but a redirect to the processwire login. Once you're logged in, certain other processes are handling the "view" access of the admin, like ProcessHome module has a permission "page-edit" set.
  23. Yes, you have a custom login url and no edit rights even for editors. It seems in my test, even if you give them "view" access on the admin template they still can't see the admin. So all little strange. Once you give them "page-edit" permission on the role he has again access to admin. Sorry to hijack this thread, but we were confused as you said to un-ckeck all roles, which in fact are already un-checked by default on the admin template.
  24. I think what you describe is already by default, but you define a custom login url and not the processwire backend one. But once logged in they still can access the admin, just have a continue link if they have no edit rights. Thing is that Nukro uses Fredi to edit pages and that requires them to have edit rights set, but they should have no access to processwire backend. So the hook and redirect on admin pages except pages with "FrediProcess" is all needed.
  25. I can't see this. I have roles that have no edit permission access. Still on the admin template none of the roles have "view" access checked... Like "test" has only view access...
×
×
  • Create New...