verdeandrea Posted May 19, 2014 Share Posted May 19, 2014 Hi guys, I'm using the Page edit per user module and i find it really useful but, as I can see, i doesn't allow the user to add new children for a page. Is it right? Is there a way to let the user add children to a page he has rights to edit? Thanks! Link to comment Share on other sites More sharing options...
Martijn Geerts Posted May 19, 2014 Share Posted May 19, 2014 (edited) The users must have the right template rights for that. The modules it self just restricts access the given access if it's not on his brance... // more hooks for this module $this->addHookAfter('Page::addable', $this, 'hookPageAddable'); $this->addHookAfter('Page::editable', $this, 'hookPageEditable'); $this->addHookAfter('Page::viewable', $this, 'hookPageViewable'); $this->addHookAfter('Page::sortable', $this, 'hookPageSortable'); $this->addHookAfter('Page::deleteable', $this, 'hookPageDeleteable'); $this->addHookAfter('Page::moveable', $this, 'hookPageMoveable'); Edited May 19, 2014 by Martijn Geerts Link to comment Share on other sites More sharing options...
cstevensjr Posted May 19, 2014 Share Posted May 19, 2014 As stated earlier, Just check your template in the back-end as shown on the below image Link to comment Share on other sites More sharing options...
verdeandrea Posted May 19, 2014 Author Share Posted May 19, 2014 Thanks Martjin. I'm not sure i got it... This is my situation: I have these pages - Group A (template: "group") --- Events (template: "events_list") ------ Event lorem ipsum (template: "event") ------ Event dolor sit amet (template: "event") ------ ect. - Group B (template: "group") --- Events (template: "events_list") ------ Event blablabla (template: "event") ------ Event blablabla2 (template: "event") ------ ect. - Group C (template: "group") --- Events (template: "events_list") ------ Event abcd (template: "event") ------ Event efgh (template: "event") ------ ect. What i need is to create a user that can add event pages just for the Group A, or just for the Group B, or Group C. All the pages share the same tamplates so i'm not sure how i can use the hooks you suggested. Link to comment Share on other sites More sharing options...
verdeandrea Posted May 19, 2014 Author Share Posted May 19, 2014 Thanks cstevensjr, so i need to create different templates for every group and different templates for every event list, and then set their access differently for every user? Is there a chance to use the same template but differentiate the access for the group page and events list? Link to comment Share on other sites More sharing options...
cstevensjr Posted May 19, 2014 Share Posted May 19, 2014 You could create roles for Group A, Group B and Group C. Give each role appropriate permission. Assign each user to the Role that is needed to do what you want. On each template, enable "Do you want to view and edit access for pages using this template?" Give access to the appropriate Roles as required. The last access option on that page is "Add Children" Link to comment Share on other sites More sharing options...
verdeandrea Posted May 19, 2014 Author Share Posted May 19, 2014 Ok got it, but if Group A, Group B and Group C have the same template i can not have different roles, is that right? Link to comment Share on other sites More sharing options...
adrian Posted May 19, 2014 Share Posted May 19, 2014 Is this any help: http://modules.processwire.com/modules/custom-page-roles/ Link to comment Share on other sites More sharing options...
cstevensjr Posted May 19, 2014 Share Posted May 19, 2014 (edited) Yes, a template can have different roles assigned to it, that's what the Access tab is for (to further define what type of access you want to have). I would also look at the module Adrian is mentioning. The best way is to just enable the feature, create the individual roles and play with it (if you can). Edited May 19, 2014 by cstevensjr Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now