WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Florian.L on October 02, 2011, 11:31:18 PM

Title: Highlighting top entry of active tree
Post by: Florian.L on October 02, 2011, 11:31:18 PM
Hi guys,
In case the title of my question isn't understandable I will try it again:  :-D
I simply want to highlight the top entry of the menu tree which contains the active page.

Test1
   Test2
       Test3
       Test4
   Test5
Test6
Test7

So if page "Test4" would be the active one I would like to highlight "Test1". "Test4" I can highlight by the CSS ID property set by show_menu(), but how can I highlight "Test1"?

In Typo3 I would know what to do - but in WB I poorly do not...

If somebody could give me a hint I would be very glad about that!

Greeting,
Florian L
Title: Re: Highlighting top entry of active tree
Post by: DarkViper on October 03, 2011, 09:06:43 AM
Sometimes it helps, just to read the documentation.   :wink:

/modules/show_menu2/README.en.txt (start at line 176)

Let SM2 generate a menue... and check the output in several situations

have a nice day....

Title: Re: Highlighting top entry of active tree
Post by: Florian.L on October 03, 2011, 02:29:11 PM
Hi DarkViper,
thank you for your reply. Actually I did the menu with show_menu() not with show_menu2()... But it seems to me that it isn't possible with that one. Because of your post I pushed my self to replace the show_menu by show_menu2 and now it is working just fine. Also highlighting works just perfect now!

Thank you very much!

Greetings
Florian L