This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

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

Get template for a node

Get template for a node

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


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



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?



Theme: K.Flay - Don't Wait Up ...

Friday 12 July 2013 9:49:11 am


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



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.


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

36 542 Users on board!

Forums menu

Proudly Developed with from