Forums / Setup & design / Menu Structure not show some items

Menu Structure not show some items

Author Message

Cristian Pacheco

Thursday 25 October 2007 5:03:59 am

Hello, we have this doubt and need if you can help us. We defined (in v3.9.3) this structure of Menu created with Folders but the items under 5th level, (Sub2_Menu1 > Item1, Item2, Item3) do not appear in the end user page.

- Is normal this behavior ?
- There is way to show them ?

Example:

Home / Menu2 / Submenu2 / Sub2_Menu1 / Item1

Home (ROOT)
-Menu1
-Menu2
-SubMenu2
-Sub2_Menu1
- Item1*
- Item2*
- Item3*
-Sub2_Menu2*
-Sub2_Menu3*
-Menu3
-Menu4

Thanks, Cristian.

UTN Facultad Regional Delta
Campana, Bs.As.-Argentina
http://www.frd.utn.edu.ar

Ɓukasz Serwatka

Friday 26 October 2007 12:12:14 am

Hello Cristian and welcome to the eZ Publish Community!

I assume that you are using Website Interface, where left menu support 2 levels only. However as long as folder has enabled checkbox on "Display sub items" attribute, you should see all children in main content area.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Cristian Pacheco

Friday 26 October 2007 6:15:58 am

Yes, I am Using Website Interface. Thanks for you Reply.

Saludos, Cristian.

UTN Facultad Regional Delta
Campana, Bs.As.-Argentina
http://www.frd.utn.edu.ar

Bernd Winkelmann

Tuesday 13 November 2007 5:33:40 am

Hi Cristian

I had the same problem yesterday.

the standard presentation of subitems is a bit unluckily

my solution

1. create overwrite template for /menu/flat_left.tpl from extension/ezwebin/design/ezwebin/templates

Admin/Design -> select here your siteaccess (my is ger) otherwise you will show templates from the current sitaccess (first i was confused because not displaying the templates for what i was seaching)

->Templates

filter for flat_left

find menu/flat_left in extension/ezwebin/design/ezwebin/templates

->create now a overwite for this template (eg treemenu_flat_left[.tpl]) for your siteaccess

the overwrite template is now in design/ezwebin/override/templates/ ready for editing

or edit it online clicking the "Pencil"
my looks like this
this is presenting the same menu stile also for other subitems like eg documentation pages

<div class="border-box">
<div class="border-tl"><div class="border-tr"><div class="border-tc"></div></div></div>
<div class="border-ml"><div class="border-mr"><div class="border-mc">

        <h5><a href={if eq( $ui_context, 'browse' )}{concat("content/browse/", $module_result.path[$pagerootdepth].node_id)|ezurl}{else}{$module_result.path[$pagerootdepth].url_alias|ezurl}{/if}>{$module_result.path[$pagerootdepth].text}</a></h5>

<div class="contentstructure">
    {include uri='design:parts/treemenu.tpl'}
    {* try also -> menu_01/flat_left.tpl looks a bit different *}
</div>

</div></div></div>
<div class="border-bl"><div class="border-br"><div class="border-bc"></div></div></div>
</div>

clear all caches -> sometimes is helpfully to use all cache clearing options step by step

ok now have a look at your left menu

you see now all folders collapsed also the higher levels i think

next overwrite template

filter for "treemenu"

select -> /parts/treemenu.tpl from design/base/templates

create a overwrite
edit it

my looks like this

{let docs=treemenu( $module_result.path,
                    $module_result.node_id,
                    ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ), 1, 6 )
                    depth=1}

        <ul>
        {section var=menu loop=$:docs last-value}
            {section show=and($menu.last.level|gt($menu.level),$menu.number|gt(1))}
           </ul>
           </li>
           {/section}
            <li>
            {section show=and($menu.last.level|lt($menu.level),$menu.number|gt(1))}
            <ul>
               <li>
            {/section}

            {set depth=$menu.level}
            <div class="menu-level-{$menu.level}">
            <a {$menu.is_selected|choose('','class="selected"')}
                href={$menu.url_alias|ezurl}>{$menu.text|shorten(25)}</a>
            </div>

           </li>
        {/section}
        </ul>

        {section show=$depth|gt(1) loop=$depth|sub(1)}
         </li>
        </ul>
        {/section}

{/let}

about the used here treemenu() read details here:
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/template_operators/miscellaneous/treemenu

i tuned my menu so that it show all subitems declared in menu.ini [MenuContentSettings] LeftIdentifierList array()
from the second level (1) (first level is 0) to the sixth (6) level deep

tune it like you want - clear chaches - look and feel :-) the debris is css setup i think

i'm sure that now you are not satisfied with fakt that the system display the links for the deeper sublevels in content - is'nt it beastly? for me it was unpossible

looking for a way to change it?

i was gone this way

overwriting this template
/full/folder.tpl from extension/ezwebin/design/ezwebin/override/templates -> full_folder_view_do_not_display_subfolders[.tpl]

one little change

was

line 33          {if le( $node.depth, '3')}
                   {set $classes=array( 'infobox', 'folder' )}

to

 line 33         {if le( $node.depth, '6')}
                    {* set here all classes witch not have to be displayed in the childview of the folder *}
                    {set $classes=array( 'infobox', 'folder', 'article', 'article_mainpage','article_subpage' )}

after clearing cache you doesn't see changes?
thats right - seems the overwrite system not work here

open this file -> /settings/siteaccess/your_siteaccess/overrite.append.ini or edit it for your siteaccess within admin ini tool in section [full_folder]

my shoes like this:

[full_folder]
Source=node/view/full.tpl
MatchFile=full_folder_view_do_not_display_subfolders.tpl
Subdir=templates
Match[class_identifier]=folder

so and now? hope that i haven't forgotten something to write from my diary here

if you have a different solution - please post it here

aha folks! - sorry for my "bewitching" english ;-)
greetinx
bernd

eZ debug

Timing: Jan 18 2025 05:19:54
Script start
Timing: Jan 18 2025 05:19:54
Module start 'content'
Timing: Jan 18 2025 05:19:55
Module end 'content'
Timing: Jan 18 2025 05:19:55
Script end

Main resources:

Total runtime0.8642 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 588.8594180.8281
Module start 'content' 0.00950.7327 769.6875619.5313
Module end 'content' 0.74210.1220 1,389.2188341.3984
Script end 0.8641  1,730.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4544210.0002
Check MTime0.00140.1668210.0001
Mysql Total
Database connection0.00160.185510.0016
Mysqli_queries0.774089.56471990.0039
Looping result0.00200.23591970.0000
Template Total0.826695.720.4133
Template load0.00270.312920.0014
Template processing0.823995.345420.4120
Template load and register function0.00030.030010.0003
states
state_id_array0.00100.110210.0010
state_identifier_array0.00070.082320.0004
Override
Cache load0.00230.2668810.0000
Sytem overhead
Fetch class attribute can translate value0.00150.173840.0004
Fetch class attribute name0.00110.129350.0002
XML
Image XML parsing0.00120.139040.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00410.4777290.0001
String conversion0.00000.001330.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
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs