Pagelayout problem

Author Message

John Smith

Monday 14 March 2005 4:09:39 am

hi there,

In my pagelayout override file, for left menu, i am using a swtich statment on the basis of $node.node_id to select/highlight the current folder's name in the menu.

For very first when you clear the cache it is working fine means i am getting the value of $node.node_id, but when go to the other menu items and repeat the process or navigate the left menu two-there times, i am not getting the value of $node.node_id.

I dont know whats happening here.

Please help

cheers

Eivind Marienborg

Monday 14 March 2005 4:26:59 am

Try using $module_result.node_id instead. See http://www.ez.no/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish for more info.

John Smith

Monday 14 March 2005 5:12:13 am

thanks mate for your quick reply.. sorted.

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

Main resources:

Total runtime1.2157 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1328152.6094
Module start 'layout' 0.00540.0031 741.742239.4141
Module start 'content' 0.00851.2057 781.1563498.3906
Module end 'content' 1.21420.0015 1,279.54698.3438
Script end 1.2157  1,287.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2568160.0002
Check MTime0.00130.1083160.0001
Mysql Total
Database connection0.00090.072010.0009
Mysqli_queries1.167296.0061570.0205
Looping result0.00100.0786550.0000
Template Total1.179797.020.5898
Template load0.00210.175220.0011
Template processing1.177596.855220.5888
Template load and register function0.00040.030610.0004
states
state_id_array0.00140.118610.0014
state_identifier_array0.00200.165920.0010
Override
Cache load0.00160.1355140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.067520.0004
Fetch class attribute name0.00150.122740.0004
XML
Image XML parsing0.00070.059120.0004
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00090.0745160.0001
String conversion0.00000.000540.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
3content/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
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.0002 secs