-
Posts
4,956 -
Joined
-
Last visited
-
Days Won
100
Everything posted by LostKobrakai
-
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.
-
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 .= ")";
-
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
-
No more create new page from page field after upgrade 2.6.13
LostKobrakai replied to BFD Calendar's topic in General Support
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. -
Page field limit on 171 references
LostKobrakai replied to Jeroen Diderik's topic in General Support
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. -
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.
-
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.
- 24 replies
-
- 2
-
- draft
- Pro-Modules
-
(and 3 more)
Tagged with:
-
How to assign pages to specific users ?
LostKobrakai replied to kradzcalypse's topic in General Support
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. -
Did you change the database settings to InnoDB while installing ProcessWire?
- 7 replies
-
- mysql
- table doesnt exist
-
(and 1 more)
Tagged with:
-
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)
-
Unexpected behavior for $page->find() method
LostKobrakai replied to devsmo's topic in API & Templates
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. -
See those 2 places: Pages.php#L973, Pages.php#L1077
-
Selector to find pages with identical value in a field?
LostKobrakai replied to Webrocker's topic in API & Templates
http://stackoverflow.com/a/688551 This should give you all duplicates used on field_legacy_id. -
http://processwire.com/docs/tutorials/troubleshooting-guide/
-
PW Best Practices - Need your expertise and opinions!
LostKobrakai replied to zgjonbalaj's topic in General Support
A preview and rough timeline for the drafts module: http://processwire.com/blog/posts/processwire-2.6.13-and-a-preview-of-prodrafts/ -
Help to structure a project with subdomains and multisite.
LostKobrakai replied to zilli's topic in Getting Started
That's certainly possible, which you can see here: https://processwire.com/talk/topic/10324-bmw-dealer-sites/- 3 replies
-
- multisite
- enterprise
-
(and 1 more)
Tagged with:
-
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.
-
Do you have any custom or 3rd party modules installed and if so which ones?
-
Very neat and really simple addition. Maybe I'll use it on one of my current projects.
-
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.
-
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.
-
ListerPro does already have ajax editing abilities. The feature was partly developed for that usage.
-
Depends on which hook you're using, if you're using hooks.
-
Sure. $page->imageField->add($path);