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_menu2 question
  • Print
Pages: [1]   Go Down

Author Topic: show_menu2 question  (Read 3917 times)

Offline crnogorac081

  • Posts: 2162
  • Gender: Male
show_menu2 question
« on: July 02, 2009, 06:11:18 PM »
Hi,
I am playing with multilanguage site, and i made menu to switch language. I made tab over .menu-current  with flag in it. It works nice when you click on flags, when you click on seccond od third level of menu, I lose tab over current language. (there is no tab over both flags..)

Is there any way to make the language selected (with tab over it) all the time wit sm2 or sm ? This is the flag menu below.

Code: [Select]
show_menu2(0, SM2_ROOT, SM2_START, SM2_PRETTY, '<li> [ac]<img src="' .WB_URL .'/media/flags/[menu_title].png" /> </a>','</li>','<ul id="language_menu">','</ul>','');
-------Update, , here is example:

I have first menu, for eg English and German:       **EN**      DE , and there is background picture behind english flag.

Defult language is  english. Now when I  click any menu item (in 2nd or 3rd menu level), background behind EN or DE dissapear.. I used .menu-current class, which is wrong, and of course it works only if you click on EN or DE flags.. So basicly I need to mark the top level menu:

Code: [Select]
EN
  -page 1
  - page 2
  -page 3

DE
 - page 4
 - page 5
 - page 6

If you click page 1,2,3 then I want to highlight EN, and if you click pages 4,5,6 then highlight DE.. Is this possible ???

« Last Edit: July 03, 2009, 02:35:29 AM by crnogorac081 »
Logged
Web developer

Offline crnogorac081

  • Posts: 2162
  • Gender: Male
Re: show_menu2 question
« Reply #1 on: July 03, 2009, 02:54:39 AM »
Solution found here: https://forum.WebsiteBaker.org/index.php/topic,14037.msg86747.html#msg86747

Recomended tool for all multilanguage site :)

cheers
Logged
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2 question
 

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