WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Highlighting top entry of active tree
  • Print
Pages: [1]   Go Down

Author Topic: Highlighting top entry of active tree  (Read 3808 times)

Offline Florian.L

  • Posts: 6
Highlighting top entry of active tree
« 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
Logged

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: Highlighting top entry of active tree
« Reply #1 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....

Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline Florian.L

  • Posts: 6
Re: Highlighting top entry of active tree
« Reply #2 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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Highlighting top entry of active tree
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2