Left menu: always the same

Author Message

Yannick Peignard

Thursday 21 January 2010 12:33:48 am

Hi,

I try to modify the left menu to have always the same, not change by $module_result.path. Which path must I put in the treemenu template operator to get this result?

I try this:

{def $root_node_id=ezini('TreeMenu','RootNodeID','contentstructuremenu.ini')
$root_node=fetch('content','node',hash('node_id',$root_node_id))}

{let docs=treemenu( $root_node.path,
is_set( $module_result.node_id )|choose( 2, $module_result.node_id ),
ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
0, 5 )}

But it doesn't work.

Thanx for your help.

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 30 2025 00:14:16
Script start
Timing: Jan 30 2025 00:14:16
Module start 'layout'
Timing: Jan 30 2025 00:14:16
Module start 'content'
Timing: Jan 30 2025 00:14:16
Module end 'content'
Timing: Jan 30 2025 00:14:16
Script end

Main resources:

Total runtime0.0147 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.1328151.2109
Module start 'layout' 0.00410.0023 739.343836.6484
Module start 'content' 0.00640.0068 775.992286.0313
Module end 'content' 0.01320.0015 862.023429.9922
Script end 0.0146  892.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002114.6575140.0002
Check MTime0.00106.7574140.0001
Mysql Total
Database connection0.00064.002110.0006
Mysqli_queries0.002214.842830.0007
Looping result0.00000.047110.0000
Template Total0.00117.710.0011
Template load0.00095.891010.0009
Template processing0.00031.827110.0003
Override
Cache load0.00064.083410.0006
General
dbfile0.002718.710080.0003
String conversion0.00000.048840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs