adrianmak Posted March 19, 2016 Share Posted March 19, 2016 From documentation https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users Step6 $config->userTemplateIDs = array(3, 111);$config->usersPageIDs = array(29, 222); what is the value of 3 and 29 ? Link to comment Share on other sites More sharing options...
adrian Posted March 19, 2016 Share Posted March 19, 2016 They are the default user template and page: Templates table Pages table 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 19, 2016 Share Posted March 19, 2016 Just a minor correction. It's the default template and the default parent page. 2 Link to comment Share on other sites More sharing options...
adrianmak Posted March 20, 2016 Author Share Posted March 20, 2016 After everything is configured and work properly for multiple templates/parents for users, Could I remove $config->advanced = true; from the /site/config.php and is multiple templates/parents for users still working with this config line ? As it is not necessary to show the System tab, after configuration has been done. Link to comment Share on other sites More sharing options...
adrianmak Posted March 20, 2016 Author Share Posted March 20, 2016 (edited) I followed the steps of creating multiple template/parents for users I got an error on Step 4 while creating a new page with new template created in step 3. When I hitted save button, an error occur. Error: Call to a member function getInputfield() on a non-object (line 630 of /var/www/html/pw-test/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module) This error only occur when selecting the new created template. template (basic-page)from installation profile (basic profile) has no such an issue Edit: I'm sorry for my carelessness. I did something wrong on step 3 which producing the above error. Anyway, multiple template and parent setup for users is working now. Edited March 20, 2016 by adrianmak 1 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