node id in custom template

Author Message

Pascal Specht

Thursday 24 July 2008 9:21:28 am

Hi there,

I've written a template for a content class. I would like to know within the template which node it actually is rendering...
I tried {$node} , but obviously, this variable isn't set.

Is there a way for a template to tell which node it is rendering ?

Thanks in advance,
</pascal>

Pascal Specht

Thursday 24 July 2008 9:39:41 am

{$DesignKeys:used|attribute(show)}

solved my problem.

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 18:33:17
Script start
Timing: Jan 18 2025 18:33:17
Module start 'layout'
Timing: Jan 18 2025 18:33:17
Module start 'content'
Timing: Jan 18 2025 18:33:18
Module end 'content'
Timing: Jan 18 2025 18:33:18
Script end

Main resources:

Total runtime0.9706 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 587.9219152.6250
Module start 'layout' 0.00850.0042 740.546939.4453
Module start 'content' 0.01270.9561 779.9922459.0781
Module end 'content' 0.96880.0018 1,239.07038.1641
Script end 0.9706  1,247.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3685160.0002
Check MTime0.00140.1448160.0001
Mysql Total
Database connection0.00110.115710.0011
Mysqli_queries0.913894.1402520.0176
Looping result0.00060.0583500.0000
Template Total0.929595.820.4648
Template load0.00270.274720.0013
Template processing0.926895.487020.4634
Template load and register function0.00020.016310.0002
states
state_id_array0.00190.198510.0019
state_identifier_array0.00160.167520.0008
Override
Cache load0.00200.2099140.0001
Sytem overhead
Fetch class attribute can translate value0.00110.115410.0011
Fetch class attribute name0.00130.137730.0004
XML
Image XML parsing0.00080.080710.0008
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00110.1095160.0001
String conversion0.00000.001040.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs