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.