How to add items to left flat menu

Author Message

Kevin McKenzie

Friday 21 October 2005 6:17:21 am

Hi,

I'm slowly getting to grips with ezPublish but I can't figure out how to add items to my left menu. I have overridden /menu/flat_left.tpl to add a link to content/bookmark:

{let docs=treemenu( $module_result.path,
                    is_set( $module_result.node_id )|choose( 2, $module_result.node_id ),
                    ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
                    0, 5 )
                    depth=1
                    last_level=0}
        <ul>
		<li class="menu-level-0"><a {$menu.is_selected|choose( '', 'class="selected"' )} href={"content/bookmark"|ezurl}>My Bookmarks</a></li>
        {section var=menu loop=$:docs last-value}
        ...

When the menu first displays, and when I click on any link other than My Bookmarks, the menu displays correctly. However, when I click on the My Bookmarks link, the only menu item displayed is My Bookmarks.

Can anyone tell me how to add items to the left menu in such a way that the whole menu still functions, or help me out by pointing me at a resource that shows me how to do it, please?

Kevin

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

Main resources:

Total runtime0.5900 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1328152.6250
Module start 'layout' 0.00610.0031 741.757839.4453
Module start 'content' 0.00920.5792 781.2031401.5625
Module end 'content' 0.58840.0014 1,182.76568.1563
Script end 0.5899  1,190.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5801160.0002
Check MTime0.00140.2364160.0001
Mysql Total
Database connection0.00080.141210.0008
Mysqli_queries0.555694.1775460.0121
Looping result0.00040.0610440.0000
Template Total0.559894.920.2799
Template load0.00210.350420.0010
Template processing0.557794.526320.2788
Template load and register function0.00010.018810.0001
states
state_id_array0.00090.146810.0009
state_identifier_array0.00100.164620.0005
Override
Cache load0.00170.283590.0002
Sytem overhead
Fetch class attribute can translate value0.00120.204610.0012
Fetch class attribute name0.00060.094910.0006
XML
Image XML parsing0.00010.022110.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00070.1108100.0001
String conversion0.00000.001540.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs