Page 1 of 1

Simple Menu HELP!

Posted: Wed Jun 10, 2009 12:36 am
by katea
Hi guys,

Newbie here. I'm hoping someone can help.

All I need is a seperate menu from the main menu ...  A simple text menu that when the page is active, highlights the link. I'm not using the standard side menu, that's seperate.

What I need that menu to do is just have a current state.

So, let's say I have 5 links....


item1
item2
item3
item4
item5


When I'm on item 3, I want item3 to be highlighted etc ...

Ideally I'd like it to be placed in a global content box, but this isn't important.

I've tried playing with MenumManager, but I'm totally lost with it.

I could of course do this:


item1
item2
item3
item4
item5



AAAARRGGGHH! all I need is a simple menu with a current state!!! :)

But when it's global, it's hard to know how to get the cms to know which page it's on as they will obviously change when selected.

Any help would be highly appreciated.

Anyone?

Thank you!

Re: Simple Menu HELP!

Posted: Thu Jun 11, 2009 10:28 am
by Deak
I'm not sure I understand how/where this menu will function in your website. You have a main menu and a side menu, right? And this is a third menu?

Using the standard Simple Navigation menu from the Menu Manager will give you all the CSS selectors you need for all possible menu states, including recognising parent items.

From the comments in the Menu Manager:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator
You then need to decide what level in your hierarchy the new menu starts at, whether items show their children (or only when they are the active page), and how many levels deep it should go (or unlimited if not set. Something like:
{menu template='simple_navigation.tpl' start_level='2' collapse='1' number_of_levels='3'}


Simple Menu should be able to handle your menu.