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.8 is now available!


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 »
  • Multiple language menu
  • Print
Pages: [1]   Go Down

Author Topic: Multiple language menu  (Read 4342 times)

Offline tessed

  • Posts: 91
  • Gender: Male
    • Desse.nl
Multiple language menu
« on: July 20, 2008, 04:32:44 PM »
Hi bakers,

I am building a multilingual site and am encountering some problems. The problem is that EN(English) and NL(Dutch) shows up in the menu. The strange thing is that i made a multilingual site last weeks and there the EN and NL doesn't show up.

In both websites showmenu is set to 1,0,1 as shown in the documentation for flag gifs. But this confuses me, because shouldn't it be 2,0,1 as you may already have a main menu.

In my first website i have the menu set to 1,0,1 and it works without showing EN and NL. One thing thats strange is that when i click a hidden page link thats set to show in both languages the main menu dissappears and only the language flags are visible.

Regards,

Tyronne

Logged
Webdesign: www.desse.nl

Offline tessed

  • Posts: 91
  • Gender: Male
    • Desse.nl
Re: Multiple language menu
« Reply #1 on: July 20, 2008, 04:52:08 PM »
Hi,

I already fixed the problem about EN and NL showing up in my new website. My main menu was set to 1,0,1 so i changed it to 1,1,1.

But i am still wondering about the other questions i have.

Regards,

Tyronne
Logged
Webdesign: www.desse.nl

Offline tessed

  • Posts: 91
  • Gender: Male
    • Desse.nl
Re: Multiple language menu
« Reply #2 on: November 20, 2008, 03:40:49 PM »
Hi,

Can somebody help me with the second part of this problem?

Regards,

Tyronne
Logged
Webdesign: www.desse.nl

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Multiple language menu
« Reply #3 on: November 20, 2008, 10:14:39 PM »
The reason for this might be the position of that hidden page within the menu tree ... it is in the root, like the language pages, right?

Anyway, that means you would need to utilize some php code to achieve your goal. You check for the referer_id and based on the result's root parent (language selection page) you then call the required menu. You might need to use "show_menu2" for that, since you need to make the menu start downwards a specific page id (again the language selection page).

cheers

Klaus
Logged

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

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