Robin S Posted December 17, 2015 Posted December 17, 2015 I'm using a PageTable field for the first time. I've set up the field so pages used in the PageTable field are stored under a separate "Tools" page. I want site editors to be able to view and edit PageTable pages via the PageTable field, but not see those pages in the page tree. Is that possible?
Juergen Posted December 17, 2015 Posted December 17, 2015 I am also interested in this. I still haven`t found a solution `til now.
Martijn Geerts Posted December 17, 2015 Posted December 17, 2015 You could put those items in a parent under /processwire/ 3
Robin S Posted December 17, 2015 Author Posted December 17, 2015 You could put those items in a parent under /processwire/ Good solution, thanks! Just curious: what is it about the /processwire/ branch that makes it hidden to non-superusers? Is it possible to create new branches that are hidden like this? 1
Ivan Gretsky Posted December 17, 2015 Posted December 17, 2015 Wow! Another option! We discussed something similar here. But processwire is not in that systemIDs array. The search in all files from ProcessPageList module for "processwire" did not get me anywhere either. What is the source of that magic? And just like Cerulean I would like to hide branches like that without hooks any modules. Though hooks and modules do exist. 1
Robin S Posted December 17, 2015 Author Posted December 17, 2015 But processwire is not in that systemIDs array. I think it is in the systemIDs array: /processwire/ is the page titled "Admin", aka adminRootPageID Thanks for the link to the other thread - that answers the question of how the /processwire/ branch is hidden.
Martijn Geerts Posted December 17, 2015 Posted December 17, 2015 It's blocked in in the code of ProcessPageList.
Ivan Gretsky Posted December 17, 2015 Posted December 17, 2015 Ah! You are talking about the Admin page! I thought anything named "processwire" is hidden. Tried it out - it is not. I always rename the admin root, so have almost forgotten it is 'processwire' by default . So no miracles here. Same thing as LostKobrakai pointed out.
theo Posted May 13, 2017 Posted May 13, 2017 Hello I know this thread is not new, but I'm trying to achieve something similar. I would like to have a certain template prefix for PageTables which then are not shown in the admin tree (never, not only for certain users/roles). For a start, I have changed wire/modules/Process/ProcessPageList/ProcessPageListRenderJSON.php. (See diff in attachment). To my surprise, this seems to do exactly what I need for templates starting with "pt_". This is the first time I am doing some work on the "system" so be gentle please. ;-) My question: How can I take this to a module (or??), so that it does not get deleted with upgrades? ProcessPageListRenderJSON.diff
Robin S Posted May 14, 2017 Author Posted May 14, 2017 @theo, the solution proposed in this thread involves creating a dedicated parent for all PageTable pages under the Admin branch of the page tree. Would this not solve your issue? 14 hours ago, theo said: My question: How can I take this to a module (or??), so that it does not get deleted with upgrades? You cannot modify the methods in ProcessPageListRenderJSON.php in a module or in any other way that means the changes will not be overwritten in a future update because the methods in this class are not hookable. Well, not apart from the construct() method anyway, which can't help what you are trying to do. 1
theo Posted May 14, 2017 Posted May 14, 2017 14 minutes ago, Robin S said: @theo, the solution proposed in this thread involves creating a dedicated parent for all PageTable pages under the Admin branch of the page tree. Would this not solve your issue? Thank you. How can I define where to store new PagesTables?
Robin S Posted May 14, 2017 Author Posted May 14, 2017 1 minute ago, theo said: How can I define where to store new PagesTables? On the "Details" tab of your PageTable field settings: 2
theo Posted May 14, 2017 Posted May 14, 2017 Yes, thank you. Found it myself one minute ago. I will try this. I think this will to the job.
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