DV-JF Posted March 8, 2018 Share Posted March 8, 2018 Hi, after searching for nearly an hour, I've found nothing suitable: Is it possible to display the name / label of the template in the table-view used for a specific page? $template->name template->name template.name $template->label template->label template.label None of above does the job ;( The reason I'm asking: I'm using pagtables for a small layoutsystem and want to display also the template name of the page in the table. Many greets! Link to comment Share on other sites More sharing options...
louisstephens Posted March 8, 2018 Share Posted March 8, 2018 Just curious, are you using the Profields Page Table module? If so, under input (when editing the field), simply add "template" to the list of "Table fields to display in admin" and it will add a column with the template being used. 1 Link to comment Share on other sites More sharing options...
DV-JF Posted March 8, 2018 Author Share Posted March 8, 2018 3 hours ago, louisstephens said: are you using the Profields Page Table module? Yes I'm using this one. 3 hours ago, louisstephens said: simply add "template" to the list of "Table fields to display in admin" Yeah I've tried this, but when I do so, the template name is displayed, which doesn't corresponded to the buttons displayed below. This may be very confusing to some editors. Have a look at the screenshot. To be clear: I want the label to be shown, not the name. Link to comment Share on other sites More sharing options...
dragan Posted March 8, 2018 Share Posted March 8, 2018 maybe try template.title (or some such variation)? 2 Link to comment Share on other sites More sharing options...
Macrura Posted March 9, 2018 Share Posted March 9, 2018 template.label is what you want 3 Link to comment Share on other sites More sharing options...
DV-JF Posted March 9, 2018 Author Share Posted March 9, 2018 5 hours ago, Macrura said: template.label is what you want Thank you , don't know why it wasn't working for me first, perhaps a typo 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