Split Top-Level menu (3 on top / 6 on vertical menu)

Author Message

Volker Stock

Saturday 02 April 2011 1:54:49 am

Hi there, I'm new to Ez and i have a 4.4 with ezwebin up and running. Now I'm struggeling with the menu-management. I looked up several threads in the forum, but didn't find a fitting resolve.

I want to achieve the following:

A top-level horizontal menu with only 3 items and a right-column-menu with 6 vertical top-level items.

As far as i can see, the menu-combination is not yet supportet in ezwebin, but i don't want to downgrade on "plain-site", because of the other features of ezwebin.

Is it possible to fetch only a few menu-items from the content-structure and seperate them to two menus?

Can someone point me to the right direction, a tutorial or an appropriate extension? Thanks a lot in advance!

Volker Stock

Saturday 02 April 2011 4:12:31 am

Ok, i think i got it working. Template operators "|ge" and "|le" helped sorting the menu-items:

{if $key|le(2)} for the top-menu and {if $key|ge(3)} for the vertical menu...

And adding a customized "flat_top.tpl" made the view for the vertical menu (flat_column.tpl).

But it's now directly called in the pagelayout.tpl like this:

<div id="myrightmenu">
{include uri=concat('design:menu/flat_column.tpl')}
</div>

It's working, but it seems a bit like a workaround and i don't know if i'm running into troubles later. Any comments are very appreciated.

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 18 2025 00:54:40
Script start
Timing: Jan 18 2025 00:54:40
Module start 'layout'
Timing: Jan 18 2025 00:54:40
Module start 'content'
Timing: Jan 18 2025 00:54:41
Module end 'content'
Timing: Jan 18 2025 00:54:41
Script end

Main resources:

Total runtime0.6765 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.1797152.6406
Module start 'layout' 0.00920.0058 741.820339.4844
Module start 'content' 0.01490.6596 781.3047425.2969
Module end 'content' 0.67460.0019 1,206.60168.1250
Script end 0.6765  1,214.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4738160.0002
Check MTime0.00130.1904160.0001
Mysql Total
Database connection0.00100.141110.0010
Mysqli_queries0.623892.2110520.0120
Looping result0.00060.0941500.0000
Template Total0.610290.220.3051
Template load0.00230.339920.0011
Template processing0.607989.851320.3039
Template load and register function0.00020.030410.0002
states
state_id_array0.02103.108410.0210
state_identifier_array0.00110.166520.0006
Override
Cache load0.00190.2741180.0001
Sytem overhead
Fetch class attribute can translate value0.00090.139710.0009
Fetch class attribute name0.00120.170620.0006
XML
Image XML parsing0.00010.017010.0001
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00640.9420100.0006
String conversion0.00000.002840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs