WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: ndh611 on February 20, 2008, 03:16:37 AM

Title: Show active menu item???
Post by: ndh611 on February 20, 2008, 03:16:37 AM
Hello,

I have a site structure like this:
- A
    -A1
    -A2
    -A3
- B
- C

Then I made two menus. The main menu: A,B,C - I use function show_menu(1,0,1) and the sub menu A1,A2,A3 - I use function show_menu (1,1).

The problem is, when I got to page A2, menu A2 is active (with class menu_current) but I want to make menu item A active also. How can I do this?

I'm new to WB so I may question a bit much... Hope that 2 weeks later I will be the one who answer and contribute to WB community.

Thanks in advance!!!
Title: Re: Show active menu item???
Post by: ruebenwurzel on February 20, 2008, 06:58:36 AM
Hello,

think this can easy be reached by using the replacement menu function show_menu2. You find it on addons and can install it as modul. Look for the parameters in the readme wich comes with the modul or on the developpers page. Basically the menucall simply needs to be replaced from show_menu() to show_menu2().

Show_menu2 comes with a lot of classes and has the possibility to add querys to the menu call. So one solution is to look wich class has your page "A" when "A2" is current and then give this class the same css as the current page.

Matthias
Title: Re: Show active menu item???
Post by: ndh611 on February 20, 2008, 08:54:22 AM
You the man!!!  8-)