Jump to content

LostKobrakai

PW-Moderators
  • Posts

    4,956
  • Joined

  • Last visited

  • Days Won

    100

Everything posted by LostKobrakai

  1. I'm not sure if "login by ip" is a good way to do this, but you could always add the "employee" role on runtime to the guest user if the ip fits, just do not save the user afterwards.
  2. Copied this from what I'm using, so you'd need to change some names and variables around. $selector = ""; // Start date inside $selector .= ", range=("; $selector .= "datefrom>=".$input->whitelist("datefrom"); $selector .= ", datefrom<=".$input->whitelist("dateto"); $selector .= ")"; // End date inside $selector .= ", range=("; $selector .= "dateto>=".$input->whitelist("datefrom"); $selector .= ", dateto<=".$input->whitelist("dateto"); $selector .= ")";
  3. I think most can be found here in the forum or in the blog, but there's no dedicated page for that. You could try this, but I'm not sure if this are the "official" release dates: https://github.com/ryancramerdesign/ProcessWire/releases
  4. You can see the console when opening the developer tools of your browser. This will tell you if there are any errors occurring from the javascript side. Also could you please do a Modules > Refresh in the backend? There where recent changes to make the autocomplete inputfield more compact for single select and it could be that you've still an outdated javascript file in the cache.
  5. Now that's some serious debugging work. I can help you a bit with where to look at. core/Database*.php core/Fieldtype(Multi).php modules/Fieldtype/FieldtypePage.php For the fieldtypes the __wakeupValue() method it the interesting one.
  6. The autocomplete and pagelist inputfields are the ones, that load their pages via ajax and/or paginated, so these are the goto inputfields for this number of pages. What I would really dig is, if there was an inputfield, that just opens a modal window with a lister, where you can filter available pages and select/deselect them. This would be the killer inputfield for large numbers of selectable/selected pages.
  7. I think the problem with drafts really is what apeisa is saying: It's most of the time an overused and therefore overrated feature. As long as you're not catering to the big corporations where content is really managed by a dozen or more people it's arguable if it's really needed. Sometimes having a live and a draft-state would be nice for already published content, but everything else is not a widespread requirement. I think about multiple drafts, draft comparison or diffs and enhanced permission handling. But the other argument about the competitors is true. All of them handle drafts by default without even thinking much about it. It's always handled like kind of a must have feature.
  8. The ProcessWire core doesn't provide that detail of access management, but there are various modules out there to enhance the access management. You should take a look at the Dynamic Roles module. Keep in mind, that if you don't offer access to the backend to those users you could also manage access on your own for the frontend.
  9. Did you change the database settings to InnoDB while installing ProcessWire?
  10. That's wrong. The template object does have a __toString() method, which returns the name, therefore comparing without type check does work. // For a page using a template named "products" $page->template == "products" // true $page->template === "products" // false (object !== string) $page->template->name === "products" // true (string === string)
  11. That's exactly the issue I wanted to check on by lettings you move these pages, as this should trigger an update to the parents table. Maybe you should open an issue over at github about this and include how you're saving those pages, which fail to have parents assigned.
  12. See those 2 places: Pages.php#L973, Pages.php#L1077
  13. http://stackoverflow.com/a/688551 This should give you all duplicates used on field_legacy_id.
  14. http://processwire.com/docs/tutorials/troubleshooting-guide/
  15. A preview and rough timeline for the drafts module: http://processwire.com/blog/posts/processwire-2.6.13-and-a-preview-of-prodrafts/
  16. That's certainly possible, which you can see here: https://processwire.com/talk/topic/10324-bmw-dealer-sites/
  17. 404 Errors would not point to any issue with the configuration per se, but with the url to filesystem (and/or rewrite) mapping. So I'd suggest looking into these things.
  18. Depends on where you're doing this and if you're using SystemNotifications. With the module enabled I had times, where messages invoked shortly before a redirect where gone after the redirect.
  19. Do you have any custom or 3rd party modules installed and if so which ones?
  20. Very neat and really simple addition. Maybe I'll use it on one of my current projects.
  21. That's not easily possible as the server cannot tell the client that there's a new image without the client actually requesting data from the server. You'd need to change the javascript of the image field to do some kind of server polling and requesting new images.
  22. It would be more "update-prove" to just hook the existing modules and add in your needed function on runtime, but this works, too. Most inputfields work independent on any page context, like the file field. Therefore the Fieldtype does add some hooks to dynamically inject this information, to cater for changing uploadPaths (see setupHook). You could edit the called function to not only inject the path, but also the $page object into the inputfield.
  23. ListerPro does already have ajax editing abilities. The feature was partly developed for that usage.
  24. Depends on which hook you're using, if you're using hooks.
×
×
  • Create New...