Forums / Setup & design / Problem with menu

Problem with menu

Author Message

Franck T.

Friday 03 February 2006 6:07:35 am

Hello,
When clicking on a folder name in my left menu, all its 21 subfolders are displayed into the menu !!!
Is there a way to prevent this?
I was expecting some settings in the menu.ini but ...

Thomas Nunninger

Friday 03 February 2006 9:39:10 am

Hi,

in base/templates/menu/flat_left.tpl you find:

{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}

The 5 is a hardcoded max_level (cf. http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_operators/miscellaneous/treemenu) You can try to insert

ezini( 'MenuContentSettings', 'MaxLevel', 'menu.ini' )

instead and define this setting in your menu.ini. Or you hardcode another value in your template.

Have a nice day

Thomas

Franck T.

Monday 06 February 2006 1:22:29 am

Sorry Thomas, but I don't understand ...
If 5 is the max depth that should be explored from a parent node, why doest it return me <b>21</b> subfolders ??

Thomas Nunninger

Monday 06 February 2006 3:00:21 am

Hi,

the depth is not the amount of items outputted but the depth how deep / how many levels in the node tree are searched recoursively. An example:

level 1
  level 2a
    level 3
      level 4
        level 5
          level 6
  level 2b
  level 2c
    level 3b

with depth=5 only level 6 is not present in your tree. With level=2 you will get:

level 1
  level 2a
  level 2b
  level 2c

Have a nice day

Thomas

Franck T.

Monday 06 February 2006 8:16:31 am

OK, Thomas, I understand you more.
Thanks a lot... one more time !

eZ debug

Timing: Jan 22 2025 01:54:18
Script start
Timing: Jan 22 2025 01:54:18
Module start 'content'
Timing: Jan 22 2025 01:54:18
Module end 'content'
Timing: Jan 22 2025 01:54:19
Script end

Main resources:

Total runtime0.4784 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0107 588.8516180.8438
Module start 'content' 0.01070.0092 769.695397.9609
Module end 'content' 0.01990.4583 867.6563526.0000
Script end 0.4782  1,393.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.7782200.0002
Check MTime0.00140.2856200.0001
Mysql Total
Database connection0.00130.265410.0013
Mysqli_queries0.397583.10311410.0028
Looping result0.00190.39151390.0000
Template Total0.457795.710.4577
Template load0.00100.215710.0010
Template processing0.456795.472710.4567
Override
Cache load0.00070.140510.0007
Sytem overhead
Fetch class attribute can translate value0.00090.193610.0009
XML
Image XML parsing0.00030.070010.0003
General
dbfile0.02154.5041200.0011
String conversion0.00000.006330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs