Solved: More than one #active in a menu (J! 1.0.13)
Posted: Fri Jan 25, 2008 12:44 pm
Hi,
i have hacked my mod_mainmenu.php so I can add to each menu item in a menu a personal suffix, because i want to have for every item another :link, :hover ,... graphic. Now i have the problem, that my #active_menu graphic is at all menu items the same - and this is bad
Therefor i want, that the suffix i gave the menu item is at the end of #active_menu, too.
A short example:
My suffix for the menu item Bla is _bla. Now i want, that _bla is used for the #active_menu... looks like that: #active_menu_bla
so, i think, i can give every menu item another #active_menu graphic.
But i don't know which line i have to edit in the mod_mainmenu.php. i get the suffix with $css_params->get('item_sfx');
I hope someone can help me
thx.
sven
i have hacked my mod_mainmenu.php so I can add to each menu item in a menu a personal suffix, because i want to have for every item another :link, :hover ,... graphic. Now i have the problem, that my #active_menu graphic is at all menu items the same - and this is bad

Therefor i want, that the suffix i gave the menu item is at the end of #active_menu, too.
A short example:
My suffix for the menu item Bla is _bla. Now i want, that _bla is used for the #active_menu... looks like that: #active_menu_bla
so, i think, i can give every menu item another #active_menu graphic.
But i don't know which line i have to edit in the mod_mainmenu.php. i get the suffix with $css_params->get('item_sfx');
I hope someone can help me

thx.
sven