AndZyk Posted August 30, 2021 Posted August 30, 2021 Hello, I have a user role "editor-english", which is not allowed to edit the default language "german" of a page. For this I have installed the "page-edit-lang-..."-permissions. This user role has the permission "page-edit-lang-default" disabled and "page-edit-lang-english" enabled. My problem is, that I want this user role to be able to add new pages in the non-default language only. But since ProcessWire requires you to enter the page title in the default language on page creation, it is not possible to add a page for this user role, because it is not possible to enter a page title in the default language. I think the only way for me would be to set the page title in the default language with a hook before the page is added. Could somebody please tell me which hook that would be? I only tried "Pages::saveReady" so far. Or is there an other solution? ? In my opinion this is an issue which reduces the use of this permission. Regards, Andreas
AndZyk Posted August 31, 2021 Author Posted August 31, 2021 I think I will settle with the solution to set a "Name format for children" on the "Family" tab of the parent template. This way I can skip the "add page" step and still keep my "page-edit-lang-english"-permission. Additionally I hook into "Pages:saveReady" to set a nicer page name. If anyone has a nicer solution, I would be happy to hear it. ?
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