Manaus Posted May 2, 2018 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
dragan Posted May 2, 2018 Posted May 2, 2018 What you want is AdminOnSteroids - it has lots and lots of goodies 2
Zeka Posted May 2, 2018 Posted May 2, 2018 You can change label field globally in the setting of ProcessPageList module - {title} | {template.name} 3 1
Manaus Posted May 2, 2018 Author 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"
tpr Posted May 2, 2018 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
Peter Knight Posted August 6, 2018 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.
neophron Posted November 7, 2023 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?
ngrmm Posted November 7, 2023 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
neophron Posted November 7, 2023 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.
bernhard Posted November 7, 2023 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
neophron Posted November 7, 2023 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.
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