left menu question

Author Message

Michael Kress

Wednesday 01 August 2007 3:08:59 pm

Hello,

I'm using ezwebin from ez publish v 3.9.2.
There, I'd like to change the left menu. Currently it only displays menu items beginning from level 2, but I'd like to display the top level items (and omit the top menu).
I suspect the change to make in the following part, but my lack of knowledge is too big in order to understand it:

{if or(is_unset($module_result.content_info.class_identifier), ne( $module_result.content_info.class_identifier, 'documentation_page' ))}
   {def $root_node=fetch( 'content', 'node', hash( 'node_id', $module_result.path[$pagerootdepth].node_id ) )
        $left_menu_items = fetch( 'content', 'list', hash( 'parent_node_id', $root_node.node_id,
                                                           'sort_by', $root_node.sort_array,
                                                           'class_filter_type', 'include',
                                                           'class_filter_array', ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ) ) )

(beginning of the file flat_left.tpl)

Can you please help me?
Thanks in advance
Michael

Thiago Campos Viana

Wednesday 01 August 2007 6:32:56 pm

try:

$left_menu_items = fetch( 'content', 'list', hash(
'parent_node_id', 2,
'class_filter_type', 'include',
'class_filter_array', ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' )
)
)

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Michael Kress

Wednesday 01 August 2007 10:26:34 pm

hmm, this is not quite the effect I intended.
Let's assume I had this structure:

[Home]
 +--[item1]
    +--[subitem1.1]
    +--[subitem1.2]
    +--[subitem1.3]
 +--[item2]
 +--[item3]

Then I see nothing when I click on [Home] and I see [item1] [item2] [item3] when I click on [item1] and for this reason I can't descend in the menu structure.
What I'd rather like is to see [item1] [item2] [item3] when I click on [Home] and the [subitemsx] when I click on [item1].
Thanks
Michael

Michael Kress

Thursday 02 August 2007 3:05:55 pm

Meanwhile I found out that the left menu flat_left.tpl _is_ included, but it is not displayed.
The sourcecodes shows a line

<!-- START: including template: extension/ezwebin/design/ezwebin/templates/menu/flat_left.tpl

followed by the rest of the file.
But for some reason it's not displayed.
This happens only on the main page [Home].
Any idea?

Greetings
Michael

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.