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.

eZ debug

Timing: Jan 19 2025 08:58:16
Script start
Timing: Jan 19 2025 08:58:16
Module start 'layout'
Timing: Jan 19 2025 08:58:16
Module start 'content'
Timing: Jan 19 2025 08:58:17
Module end 'content'
Timing: Jan 19 2025 08:58:17
Script end

Main resources:

Total runtime0.9004 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1328152.6094
Module start 'layout' 0.00570.0030 741.742239.4141
Module start 'content' 0.00880.8905 781.1563562.7188
Module end 'content' 0.89920.0011 1,343.875012.1875
Script end 0.9004  1,356.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3682160.0002
Check MTime0.00130.1462160.0001
Mysql Total
Database connection0.00100.112310.0010
Mysqli_queries0.843293.6493600.0141
Looping result0.00060.0632580.0000
Template Total0.864996.120.4325
Template load0.00230.251420.0011
Template processing0.862795.808320.4313
Template load and register function0.00020.024010.0002
states
state_id_array0.00140.151510.0014
state_identifier_array0.00080.089620.0004
Override
Cache load0.00190.2122390.0000
Sytem overhead
Fetch class attribute can translate value0.00050.059720.0003
Fetch class attribute name0.00170.189550.0003
XML
Image XML parsing0.00270.303220.0014
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00350.3893160.0002
String conversion0.00000.000940.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs