Forums / Setup & design / left menu question

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

eZ debug

Timing: Jan 19 2025 06:06:39
Script start
Timing: Jan 19 2025 06:06:39
Module start 'content'
Timing: Jan 19 2025 06:06:39
Module end 'content'
Timing: Jan 19 2025 06:06:40
Script end

Main resources:

Total runtime1.0273 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.9844180.8438
Module start 'content' 0.00640.8817 770.8281567.7813
Module end 'content' 0.88810.1392 1,338.6094336.7734
Script end 1.0272  1,675.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3825210.0002
Check MTime0.00140.1348210.0001
Mysql Total
Database connection0.00120.114910.0012
Mysqli_queries0.954592.91351970.0048
Looping result0.00220.21821950.0000
Template Total1.002197.520.5010
Template load0.00210.200120.0010
Template processing1.000097.343120.5000
Template load and register function0.00010.014110.0001
states
state_id_array0.00070.064810.0007
state_identifier_array0.00100.095820.0005
Override
Cache load0.00170.1701390.0000
Sytem overhead
Fetch class attribute can translate value0.00190.187930.0006
Fetch class attribute name0.00080.077150.0002
XML
Image XML parsing0.00220.213230.0007
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00550.5400270.0002
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs