Forums / General / Tpl code to know the display tpl associated to a given node?

Tpl code to know the display tpl associated to a given node?

Author Message

Massimiliano Bariola

Friday 18 January 2008 9:56:09 am

Hi all,

I have a breadcrumbs line on top of a site, which link to all nodes in the hierarchy.

e.g.

Home / News / From Italy / 2007 / November / bhalblahblah

of course, all levels in the breadcrumb trail correspond to an actual node which contains the nodes further down in the chain.

This site has a lot of overridden templates, and to be sure that I would not navigate to a page where the tpl has not been overridden, I have overridden the default "full" template to an error.tpl template, basically showing that the page does not exist (even though it does, but it simply has no associated content visualization), and offering the site search engine and a few more generic info.

The problem arises when some container objects are created in the backend to organise the contents but need not be browsable by the user. They would still appear - and be clickable - in the breadcrumbs, which is something obviously undesirable.

So, is there a way - in a .tpl - to know what .tpl will be used for the "full" (default) view of a certain node? I seem to remember I saw something similar in the admin interface but can't find the page right now.

thank you,

Massimiliano