WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: tessed on July 20, 2008, 04:32:44 PM

Title: Multiple language menu
Post by: tessed 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

Title: Re: Multiple language menu
Post by: tessed 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
Title: Re: Multiple language menu
Post by: tessed on November 20, 2008, 03:40:49 PM
Hi,

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

Regards,

Tyronne
Title: Re: Multiple language menu
Post by: kweitzel 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