Recently Browsing 0 members
No registered users viewing this page.
By Robin S
If your module has a lot of config fields you might want to divide them into groups inside a tabbed interface. Here is a demonstration module showing how this can be done.
Thanks to @kixe for providing my starting point in this forum topic.
"Permission “page-sort” for template “ ... ” not allowed (requires “page-edit” permission)"
– This lovely error message is thrown at me, if, as implied by it, I try to add (to my "editor" role) the permission "page-sort" for a specific template, without the permission "page-edit" enabled for the same template.
Seems like it's been mentioned a few times before but never properly answered, by e.g. @Robin S ... :
"Allow the granting of page-sort permission independent of page-edit": https://github.com/processwire/processwire-requests/issues/29
Why do I wanna do this?:
I have a page tree structure 🌳 as so:
– Page a [C1_p] – Page b [C1_p] Different category [C2]
– Page c [C2_p] – Page d [C2_p] ________________________
The page "Category" has the page-template "C1",
the pages "Page a" and "Page b" both have the page-template "C1_p".
The page "Different category" has the page-template "C2"
the pages "Page c" and "Page d" both have the page-template "C2_p".
The two pages called "Category" and "Different category" do not have any content, they only serve as containers for pages belonging to that category.
I want my "editor" role not to be able to do anything at all with these pages "Category" and "Different category"; i.e. I do not want my editor to be able to edit, move, unpublish, hide, lock, delete (or do anything else to) these category pages.
– So, I want my "editor" role to have the "page-edit" permission for pages with the templates "C1_p" and "C2_p", but not for the pages with the category templates "C1" and "C2",
Also, I want my "editor" role to be able to move the pages with the templates "C1_p" and "C2_p" within their parent-pages.
But if I just simply add the "page-edit" and the "page-move" permissions for the "C1_p" and "C2_p" templates, then, using the "editor" role, I am not able to move these "C1_p" (and "C2_p") -template-based pages. I can actually click "MOVE" next to them and then move them, but... then I will be met by the error message "You do not have permission to sort pages using this parent - /Category/".
– So, I try to add the "page-sort" (description: "permission to sort child pages") permission to the "C1" and "C2" templates... but then trying to do so I am met by the initially mentioned error message ! Permission “page-sort” for template “C1” not allowed (requires “page-edit” permission) .
And, as mentioned, I do not want my editor role users to be able to edit these category ("C1" and "C2") pages...
– what to do about this? 😅
All the best,
So I ran into a very strange issue today. I have a template with a pagetable and I went to add an item to it, when I went to select an image (for an image field) the page instantly threw up an error
"ProcessPageSearchLive: No search specified"
The page's content also switched to the image attached. This all worked perfectly last week (local mamp box). Has anyone experienced this before, and how did you solve it?
Is there a way for us to replicate the "http://mydomain.com/processwire/page/edit/?id=xxx" and change the template to match my site template?
I'm terribly happy with the admin / backend page edit. It covers literaly everything I want to empower my non super admin user in updating pages such as validation, repeater management, file upload.
I wish not to allow the users to see the backend for both security and aesthetic reasons.
Thanks and hope to hear from you soon.
I have a user role employee with the permission page-edit-created. This user role has access to add new pages to the template posts with the template post.
The template posts should have children with the template post. The template post should have the parent with the template posts. Now every time I try to add a new page with the template post, an exception throws:
You don't have access to the template required to add pages here
Is this a bug in this permission or have I not configured the permissions correct?
Is there a hook to allow to add pages to the template posts for the role employee?
I would appreciate some help. 😀