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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 20:49:21
Script start
Timing: Jan 18 2025 20:49:21
Module start 'layout'
Timing: Jan 18 2025 20:49:21
Module start 'content'
Timing: Jan 18 2025 20:49:22
Module end 'content'
Timing: Jan 18 2025 20:49:22
Script end

Main resources:

Total runtime0.8667 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.5938152.6563
Module start 'layout' 0.00510.0028 742.250039.5078
Module start 'content' 0.00790.8573 781.7578400.6484
Module end 'content' 0.86510.0015 1,182.40638.0938
Script end 0.8667  1,190.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3807160.0002
Check MTime0.00140.1578160.0001
Mysql Total
Database connection0.00080.091110.0008
Mysqli_queries0.827795.5028460.0180
Looping result0.00050.0568440.0000
Template Total0.831796.020.4159
Template load0.00210.243220.0011
Template processing0.829695.716920.4148
Template load and register function0.00020.026210.0002
states
state_id_array0.00260.299410.0026
state_identifier_array0.00230.263220.0011
Override
Cache load0.00170.1935130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.089310.0008
Fetch class attribute name0.00120.142510.0012
XML
Image XML parsing0.00010.014010.0001
class_abstraction
Instantiating content class attribute0.00000.001310.0000
General
dbfile0.00070.0777100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs