-
Posts
289 -
Joined
-
Last visited
-
Days Won
8
Community Answers
-
marcus's post in i don't know my admin login url was marked as the answer
Misunderstanding: rename htaccess.txt to .htaccess
-
marcus's post in list input type was marked as the answer
No necessity for a module in this case. Use field type "Page" instead.
In your tree in the ProcessWire admin, add a (hidden, if you want) page called, for example "Currencies". Afterwards add children to them: e.g. USD, EUR, GBP.
Next step: create a field of type "Page" (this will reference pages), limit it to a single value ("Details" tab in the fields properties). On tab "Input", set the "Parent of selectable pages" to the aforementioned, newly created "Currencies" site.
Now you got the functionality you're aiming for. This "page field" can now be assigned to another template.
Advantage of this approach: When you need to add options (a new currency) to your set of currencies, you can just add a page and all the "page field selects" implemented elsewhere will notice that there's a new option.
If this description is too quick and shallow, just give a notice.
This whole approach is one of ProcessWire's strength and I'd be happy to explain it in more detail
-
marcus's post in Two problems maybe same origin was marked as the answer
Sounds like a design decision, maybe pages of user template aren't intended to "live" outside admin › access › user, and there's some "correcting" hook kicking in on page save.
-
marcus's post in Is the active Page part of a specific 'Page' reference field? was marked as the answer
I think this will work
$nav_sides = $pages->get('/')->nav_side; if ($nav_sides->has($page)) { //... } -
marcus's post in Dev stable and other branche PW was marked as the answer
The readme doesn't state explicitly 2.4.0, so it's still valid since dev is currently 2.4.11. It's actually quite good that a not-for-production version of a software is relatively hard to find...
But maybe it would be nice to have a short URL like http://dev.grab.pw directly pointing at the ZIP of the dev branch
-
marcus's post in It's Possible To Have Multiple Pw Instances That "talk" To Each Other? was marked as the answer
If I understand it correctly, this is not yet possible in a native way, but part of Ryan's plan for the future, see: https://processwire.com/talk/topic/6514-implement-yet-another-way-to-access-pws-globals/?p=63773
-
marcus's post in Pagination Bug was marked as the answer
Hi schlagi,
no bug But you have to activate these particular URL segments on the template first. See screenshot:
-
marcus's post in how to add more fields for processwire's user ? was marked as the answer
Since users are pages with a certain template, you can access them after going to /setup/template/, choose Filters and set "Show System templates" to yes. From that point on you can add fields to users like on any other template.
-
marcus's post in Create new user in Processwire backend was marked as the answer
Hi John,
you have to additionally grant edit access to the templates you're allowing your customer to edit.
To do this go to Setup › Templates › (some_template) › Access › Click Yes and then in this row give the new role all intended permissions.