wheelmaker24 Posted March 5, 2016 Share Posted March 5, 2016 Hi guys, I'm trying to add some useful admin links to my page like preconfigured ListerPro pages, ProcessPageAdd links and so on. Is it possible to modify the ProcessPageList to only show pages with a specific template? I've already found a tutorial to modify the PageList to only show items of a specific parent (see here). The easiest way is probably to duplicate the module and modify it, right? Thanks! Nik Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 5, 2016 Share Posted March 5, 2016 Is this the correct link? It's not pointing to a module. Link to comment Share on other sites More sharing options...
bernhard Posted March 5, 2016 Share Posted March 5, 2016 maybe you are looking for this? http://modules.processwire.com/modules/process-dashboard/ Link to comment Share on other sites More sharing options...
wheelmaker24 Posted March 6, 2016 Author Share Posted March 6, 2016 I meant the Core module "ProcessPageList", the one showing the page tree on all pages. The link in my initial topic explains how to create quick links within the admin navigation to show specified sub-pages of the page tree. I was looking for something like this that shows the full page tree but only pages with specific templates. Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 6, 2016 Share Posted March 6, 2016 That's currently not as easy. You can limit the PageList by selecting a parent and only showing that specific branch or just children, but the Page::listable, while being a often requested and discussed thing, is still not working how one would imagine. You could take a look at how some of the access controlling third party modules are handling the issue. Link to comment Share on other sites More sharing options...
bernhard Posted March 6, 2016 Share Posted March 6, 2016 a quick&dirty hack could be to use something like this (http://modules.processwire.com/modules/page-list-better-label/) to modify the page label and use some jquery to hide all pages that do not have ##templatexy## in their label of course that's in no way secure but if you only need some kind of shortcuts that could be a fast solution... Link to comment Share on other sites More sharing options...
Zeka Posted March 19, 2016 Share Posted March 19, 2016 Hi guys, I'm trying to add some useful admin links to my page like preconfigured ListerPro pages, ProcessPageAdd links and so on. Is it possible to modify the ProcessPageList to only show pages with a specific template? I've already found a tutorial to modify the PageList to only show items of a specific parent (see here). The easiest way is probably to duplicate the module and modify it, right? Thanks! Nik Hi. To shop only pages for a specific tepmplate: Do all steps from link you pointed with some exception: set process option to ProcessPageLister and in ready.php put someting like if($page->template=="admin" && $page->name=="your-page-name") { // the initial selector string that all further selections are filtered by // this selector string is not visible to user are MAY NOT be removed or changed, // except for 'sort' properties. $this->set('initSelector', 'template=sometemplate'); }; ?> Link to comment Share on other sites More sharing options...
wheelmaker24 Posted March 20, 2016 Author Share Posted March 20, 2016 Hi Zeka, seems like the initSelector approach doesn't work... 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