WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: acdc1 on August 23, 2012, 06:06:00 PM

Title: Show_menu2 question
Post by: acdc1 on August 23, 2012, 06:06:00 PM
Hi everyone!

I'm making a site on WB and have some troubles with Show_menu2 & CSS styling
 I have a menu root something like this:

Women
-- Spring-summer
------Top wear
-- Autumn-Winter
------Top wear

Men
-- Spring-summer
------Top wear
-- Autumn-Winter
------Top wear

Each level of the menu displayed in different places and have different styles on site.

Level2 menu  (Spring-summer and Autumn-winter) must be displayed as a pictures (buttons with picture).  I don't understand how style active (current) link of this 2nd level in CSS correctly using show_menu2 classes.

What I mean.. When we open the site, "Women=>Spring-summer=>Top wear" is default location

"Spring-summer" is a picture-button here and it must be highlighted (also must be highlighted "women" and "top-wear" according to current menu chain) and when we go to "Women=>Autumn-Winter=>Top wear" , "spring-summer picture-button" must became dark and "autumn-winter" pic-button must be highlighted because now it's became  a part of current menu-chain  

How can I style this level2 as pictures using show_menu2 classes? (level1 and level3 is a ordinary menu links and it's no problem to style it)
Please help! Can't solve it

Hope someone understand my writings, sorry for my english )

Thanx !
Title: Re: Show_menu2 question
Post by: marmot on August 28, 2012, 10:52:12 PM
Hi,

there are some hints for using a picture as menu item:
https://forum.WebsiteBaker.org/index.php/topic,19405.0.html
https://forum.WebsiteBaker.org/index.php/topic,21144.0.html
https://forum.WebsiteBaker.org/index.php/topic,21064.0.html

Regarding the menu path, the only thing I can imagine at the moment is using javascript for identifying the parents of the active menu item. There is a [parent] in SM2 also, but there is no way to find out the granny id, as far as I know.

Of course there is SM2_CRUMB, but I don't see an easy way how to use this for finding out the path in your menu structure.

regards