Tricky Menu Structure Problem

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
greg_s
New Member
New Member
Posts: 7
Joined: Tue Sep 09, 2008 12:59 pm

Tricky Menu Structure Problem

Post by greg_s »

Hello!

I'm currently working on a website that requieres quite a tricky menu structure. I've been trying to figure out a solution on my own for several weeks, but I still can't get near it. Maybe it is even so simple that I'm just thinking too complicated for it :) Anyway I would be very grateful if someone could help me!

So and now I'll try to describe my problem as detailed as possible.

The website I'm working on requieres a 3-level menu structure that looks something like the one on the pictures I attached to the posting

The first level (1.gif) is always present on the top of the website. It's just a simple horizontal text-menu without big special effects with the exeption of hover. On hover or after clicking on the 2nd menu element we get another simple hotizontal menu under the first one (2.gif). Till here it's not very tricky but the complicated part starts from here. As the user clicks on the menu elements 2.1 or 2.2 or 2.3 etc. a third simple horizontal menu has to appear under the first two ones, but in each case it has to display their own 3rd level menu elements (in that case children-elements) ONLY (3a.gif and 3b.gif). The Problem here is that while 2nd-level menu elements stay the same on every page, 3rd-level menu elements have to be different for every subpage.

I would be very grateful if someone could help me with this problem. I suppose that I'm not very good at describing problems so if you don't understand something I could try to explain it better and if you need some additional information (e.g. stylesheets or templates) I'll add it asap.

Many thanks in advance!

Greg
Attachments
3b.gif
3a.gif
2.gif
1.gif
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Tricky Menu Structure Problem

Post by Dr.CSS »

If you read the menu manager help you see parameters you need, start_level= is a good one...
greg_s
New Member
New Member
Posts: 7
Joined: Tue Sep 09, 2008 12:59 pm

Re: Tricky Menu Structure Problem

Post by greg_s »

2mark:

Thanks a lot for the quick answer! It works great!


Now I have one last little Problem with styling the menu. I'm using the standard horizontal menu:

Code: Select all

{if $count > 0}
{foreach from=$nodelist item=node}<a href="{$node->url}" 
{if $node->target ne ""} target="{$node->target}"{/if}
>{$node->menutext}</a>
{if $count > ($node->index+1)} |  
{/if}
{/foreach}
{/if}
As I'm not very experienced in using tags yet, I don't really know how to define classes here that would allow me to highlight the active menu element/parent with the CSS. Maybe you could help me here?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Tricky Menu Structure Problem

Post by Dr.CSS »

I would just use a default menu template as they have the call for active page, no need to make a new one when you tell it to start at level and only show that level, or you could import one and find the call it uses for active/current page then use that in yours and style it from there...
Post Reply

Return to “Layout and Design (CSS & HTML)”