a-ok Posted January 25, 2018 Posted January 25, 2018 Hi all, I was originally in need of child pages to be created via a front end form (using the same fields as the template for the child page) and once submitted to be sent to an Unpublished state. This was my original thought, anyway. But there's a lot of complex functionality (repeaters, ASMselect fields etc) that has made me stop and think about it. Now I'm thinking I could create a user role and have them log in to the site but only have access to add a child page to a certain page. They would need to not see any other pages (even other pages with the same template) and only save and unpublish (not publishing rights). Do you think something like this is possible? And wise? Any thoughts are appreciated.
a-ok Posted January 25, 2018 Author Posted January 25, 2018 I've managed to restrict the PageTree view to a branch only using http://modules.processwire.com/modules/admin-restrict-branch/ which is great but I can't work out how the user can add child pages only and not edit the other child pages. I've set my parent template to allow add child pages but not edit pages but unsure what to do next? I've managed to limit the publishing of a page, for that role, with the optional permission 'page-publish'.
a-ok Posted January 25, 2018 Author Posted January 25, 2018 I've got it all working... almost. I've just been using the core permissions, AdminRestrictBranch, and the optional 'page-publish' permission which looks good. The only final thing is that the user/role can edit non-published pages within that branch. They can't edit published pages... just the unpublished ones. Anything I could do to get around this?
a-ok Posted January 25, 2018 Author Posted January 25, 2018 I actually think @adrian may have solved this in a separate post but I just need to hook it into the user/role (so only hide them for a specific user/role)
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