Code to insert the name of the object

Author Message

David Barker

Sunday 24 August 2003 9:21:43 am

Hi,
I'm sorry if this is really simple but I can't find it anywhere! All I want is the code I would place in a template to print just the name of the object the user is looking at!

Thanks,
David

Jo Henrik Endrerud

Sunday 24 August 2003 10:55:21 am

You can use {$node.name} to print out the name of the object placed on the current node. To be able to see everything you can print/use on each node you can type {$node|attribute(show)} This wil print a list of every attribute on $node (this can also be used on other objects

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

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

Main resources:

Total runtime0.8182 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1484152.6406
Module start 'layout' 0.00590.0027 741.789139.4766
Module start 'content' 0.00860.8085 781.2656485.6172
Module end 'content' 0.81710.0011 1,266.88288.2969
Script end 0.8182  1,275.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3835160.0002
Check MTime0.00130.1603160.0001
Mysql Total
Database connection0.00080.096810.0008
Mysqli_queries0.784695.8903540.0145
Looping result0.00040.0506520.0000
Template Total0.789496.520.3947
Template load0.00190.237420.0010
Template processing0.787496.231820.3937
Template load and register function0.00020.025910.0002
states
state_id_array0.00080.093410.0008
state_identifier_array0.00110.133820.0005
Override
Cache load0.00150.182290.0002
Sytem overhead
Fetch class attribute can translate value0.00080.102720.0004
Fetch class attribute name0.00090.109620.0004
XML
Image XML parsing0.00020.025420.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00050.0606100.0000
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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs