Manaus Posted May 2, 2018 Share Posted May 2, 2018 Hello, is there any plugin to show the template assigned to some page, as navigating the pages tree? Usually I have to go to pages details, then settings, I'd like to skip that.. Thanks Link to comment Share on other sites More sharing options...
dragan Posted May 2, 2018 Share Posted May 2, 2018 What you want is AdminOnSteroids - it has lots and lots of goodies 2 Link to comment Share on other sites More sharing options...
Manaus Posted May 2, 2018 Author Share Posted May 2, 2018 Thanks Dragan, at the moment I'm on 2.7.2... Link to comment Share on other sites More sharing options...
Zeka Posted May 2, 2018 Share Posted May 2, 2018 You can change label field globally in the setting of ProcessPageList module - {title} | {template.name} 3 1 Link to comment Share on other sites More sharing options...
Manaus Posted May 2, 2018 Author Share Posted May 2, 2018 I tried a bunch of combinations in the key=value range, but I see nothing changing... Title=Title|template.name page.title=page.title template.name title="hello" Link to comment Share on other sites More sharing options...
tpr Posted May 2, 2018 Share Posted May 2, 2018 Try adding title template.name in a template's Advanced tab, under "List of fields to display in the admin Page List. Not sure if it works with 2.7.2. 2 1 Link to comment Share on other sites More sharing options...
Manaus Posted May 2, 2018 Author Share Posted May 2, 2018 Yes this works...! Link to comment Share on other sites More sharing options...
Peter Knight Posted August 6, 2018 Share Posted August 6, 2018 On 5/2/2018 at 6:34 PM, Zeka said: You can change label field globally in the setting of ProcessPageList module - {title} | {template.name} Thanks @Zeka Worked for me on 3.0.X and saved me applying to individual templates. Link to comment Share on other sites More sharing options...
neophron Posted November 7, 2023 Share Posted November 7, 2023 I wanted to refresh this, cause meanwhile the new name of module is »Page List«. Modules --> Core --> Page List --> {title} | {template.name} But recently I noticed, that adding an icon to a template removes the template name. And now I have two questions: Is there a way to show both? Is there a way to hide the template names for non admins? Link to comment Share on other sites More sharing options...
ngrmm Posted November 7, 2023 Share Posted November 7, 2023 @neophron you could to set your settings here Setup > Templates > your-template > Advanced > List of fields to display in the admin Page List And maybe you look into a css solution to hide it for non-superusers. But I don't know if that is possible 1 Link to comment Share on other sites More sharing options...
neophron Posted November 7, 2023 Share Posted November 7, 2023 8 minutes ago, ngrmm said: @neophron you could to set your settings here Setup > Templates > your-template > Advanced > List of fields to display in the admin Page List And maybe you look into a css solution to hide it for non-superusers. But I don't know if that is possible Thanks for this hint. PW offers really a lot modifications. This is part of the html backend structure, seen from a non admin: <div class="PageListItem PageListTemplate_video PageListNoChildren PageListID1226 PageListStatusUnpublished secondary PageListStatusHidden PageListItemHover" data-numtotal="0" data-numchild="0"> <a href="#" title="/video-container/video-03/" class="PageListPage label"> <i class="icon fa fa-fw fa-video-camera"></i> Video 03 | video </a> ... </div> It would be cool, if {template.name} could be wrapped in a display: not span, that is loaded only if a user is logged in. Link to comment Share on other sites More sharing options...
bernhard Posted November 7, 2023 Share Posted November 7, 2023 2 hours ago, neophron said: Is there a way to show both? Sure. Either install RockMigrations and use the "PageListShowTemplate" tweak. Or have a look what it does and add a hook yourself: https://github.com/baumrock/RockMigrations/blob/main/tweaks/PageListShowTemplate.php Or use custom page classes and use the getPageListLabel method. Also super easy! 1 Link to comment Share on other sites More sharing options...
neophron Posted November 7, 2023 Share Posted November 7, 2023 10 minutes ago, bernhard said: Sure. Either install RockMigrations and use the "PageListShowTemplate" tweak. Or have a look what it does and add a hook yourself: https://github.com/baumrock/RockMigrations/blob/main/tweaks/PageListShowTemplate.php Or use custom page classes and use the getPageListLabel method. Also super easy! Servus, thanks, I'm going to check it out. 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