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.