eZ Community » Forums » Setup & design » Get template for a node
expandshrink

Get template for a node

Get template for a node

Monday 10 June 2013 4:24:15 pm - 2 replies

Hello!

I would like to be able to retrieve the template a certain node would be renderred with.
Does eZ 4.7 provide such a information direct or indirect (via template operator or eZ Classes) while in any (other) template?

Thanks in advance

 

JT

Wednesday 26 June 2013 2:08:08 pm

Hello JT,

I don't think this is as simple or easy as you might think.

I've not known of a way to do what you describe. Sorry.

Can you share some more information on what your trying to accomplish and why?

 

Cheers,
//kracker

Theme: K.Flay - Don't Wait Up ...
Mirror: https://soundcloud.com/kflay/k-flay-dont-wait-up

Friday 12 July 2013 9:49:11 am

Hi,

You can show used templates by using these settings in site.ini :

[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
Debug=enabled
ShowXHTMLCode=enabled
ShowUsedTemplates=enabled

The ShowXHTMLCode parameter shows which template is used, as XML comments inside of the xHTML, whereas ShowUsedTemplates will show it in the debug, at the bottom of the page layout.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from