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 »
  • Show active menu item???
  • Print
Pages: [1]   Go Down

Author Topic: Show active menu item???  (Read 6544 times)

Offline ndh611

  • Posts: 78
  • Gender: Male
    • Simple & Effective website solutions
Show active menu item???
« 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!!!
Logged
Coffeemug - simple & effective web solutions
http://coffeemugvn.com

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Show active menu item???
« Reply #1 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
Logged

Offline ndh611

  • Posts: 78
  • Gender: Male
    • Simple & Effective website solutions
Re: Show active menu item???
« Reply #2 on: February 20, 2008, 08:54:22 AM »
You the man!!!  8-)
Logged
Coffeemug - simple & effective web solutions
http://coffeemugvn.com

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Show active menu item???
 

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