Recently Browsing 0 members
No registered users viewing this page.
By Roberts R
I have simple page structure:
category subcategory simple-product simple-product simple-product simple-product subcategory .... category2 so Im at category page and running
$pages->find("template=simple-product, has_parent=$page, limit=8"); and it returns 0 pages
but this returns 4 pages
$pages->find("template=simple-product, has_parent=$page"); Can someone explain why limit does not work here?
So I did some tests and it seems that any limit=n where n is >= actual page count that is possible ... selector return 0 results.
I'm using this kind of setup (https://processwire.com/blog/posts/language-access-control-and-more-special-permissions/#language-page-edit-permissions) in order to control the page edit permissions. Now I'm wondering if it's possible to hide the "none-ediable" language-tabs instead of striking them through.
By Robin S
Another little admin helper module...
Template Field Widths
Adds a "Field widths" field to Edit Template that allows you to quickly set the widths of inputfields in the template.
When setting up a new template or trying out different field layouts I find it a bit slow and tedious to have to open each field individually in a modal just to set the width. This module speeds up the process.
Install the Template Field Widths module.
You can set the default presentation of the "Field widths" field to collapsed or open. Field widths entered into the Template Field Widths inputfield are only applied if the Edit Template form is submitted with the Template Field Widths inputfield in an opened state. "Collapsed" is the recommended setting if you think you might also use core inputs for setting field widths in a template context. You can choose Name or Label as the primary identifier shown for the field. The unchosen alternative will become the title attribute shown on hover. You can choose to show the original field width next to the template context field width.
I have two templates that should talk to each other. One is for events which should access a list of artists (eventually add a new artist) and their images related to that event; the second is the artist page, which the user should be able to add or remove events that they participated, also mentioning which images are related to each event.
Some sort of feedback loop between the two.
I have tried searching around the community and google, but maybe I'm not formulating the question properly.
Thank you all for the amazing work with Processwire and the community support. I have made a few websites with PCW yet I'm still quite between beginner and intermediate.
Hello, I have a Page Reference by template radio button field to promote a certain page (only two options), but I'd like to target the page that isn't selected. This would be used dynamically throughout the site.
Does anyone know how I could accomplish this? Would I use something like remove() or not()?