Get Node Name using $module_result?

Author Message

Douglas Johnson

Tuesday 14 October 2003 11:07:21 am

How can I Get Node Name using $module_result? I know how to do it using $node but I can't use $node with viewcaching on. Actually, isn't $node really worthless?!?!?! Since ezpublish is way too slow with viewcaching disabled!

Paul Borgermans

Tuesday 14 October 2003 11:49:16 am

Not so worthless: use $node only in view templates, not the pagelayouts.

Take a look here:
http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/template_variables_set_by_ezpublish

-p

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

Main resources:

Total runtime0.7562 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.0062 587.9375152.6250
Module start 'layout' 0.00620.0041 740.562539.4453
Module start 'content' 0.01030.7446 780.0078522.1172
Module end 'content' 0.75490.0013 1,302.12508.3125
Script end 0.7561  1,310.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4673160.0002
Check MTime0.00140.1855160.0001
Mysql Total
Database connection0.00100.131710.0010
Mysqli_queries0.708393.6705540.0131
Looping result0.00050.0702520.0000
Template Total0.722595.520.3613
Template load0.00220.292020.0011
Template processing0.720395.254820.3601
Template load and register function0.00030.036810.0003
states
state_id_array0.00100.129110.0010
state_identifier_array0.00110.151720.0006
Override
Cache load0.00180.2365100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.069220.0003
Fetch class attribute name0.00140.181230.0005
XML
Image XML parsing0.00160.207320.0008
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00080.1075170.0000
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0001 secs