Jump to content

Recommended Posts

Posted

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!

Posted

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.

  • Like 1
Posted
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.

2018-03-08 18_23_59.jpg

To be clear: I want the label to be shown, not the name.

Posted
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 :huh:

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...