Multi lang site with multiple menus in multilang

erpe0812

I am not sure, that you can solve your problem as described at the doku and with sm2 only.
My experience is, that you have to use a little trick to achieve your solution.

Have a look at http://www.von-brauck-stiftung.com/
and https://forum.websitebaker.org/index.php/topic,10571.msg62554.html#msg62554
andhttps://forum.websitebaker.org/index.php/topic,9833.msg58473.html#msg58473

Hope it helps.

rgds

erpe

pereirar

Hi All, I'm having the exact same problem with Multiflex 3 (and now Multiflex 5).

carfreak, did you manage to find the code, or did you work around it?

Thanks in advance
Rui

Lotus

Nice problem you struggle with  :-D, you can get pretty advanced with show_menu2 and I suggest you do that because of the superior styling options and features.
try http://code.jellycan.com/sm2test/ for exaple code.

carfreak

#1
Hello,

i have build a site in WB with the multiflex3 template and show_menu2 and it should be multilang (NL,DE)

i have the following structure

Dutch (NL)(menulink)
     Home (wysiwyg) (level 1)
     geschiedenis (wysiwyg) (level 1)
            Hoe het begon (wysiwyg) (level 2)
            De toekomst (wysiwyg) (level 2)
     over ons (wysiwyg) (level 1)

German (DE)(menulink)
     Startseite (wysiwyg) (level 1)
     Geschichte (wysiwyg) (level 1)
           wie hat es angefangen (wysiwyg) (level 2)
           die zukunft (wysiwyg) (level 2)
     Uber uns (wysiwyg) (level 1)

Dutch_extra  (menulink)
     Wie zijn wij (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Voor foto´s (wysiwyg) (level 2)
            Na foto´s (wysiwyg) (level 2)

German_extra (menulink)
     wer sind wir (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Bild vorher (wysiwyg) (level 2)
            Bild Nachher (wysiwyg) (level 2)


Now an explanation, this is wat i want to happen

first of all there are 3 menu´s on the page
menu1  = Main Menu
menu 2 = Extra Menu
menu 3 = Top Menu


on the topmenu i only want the choice NL and DE

<!-- Navigation Level 1 -->
        <div class="nav1">
            <?php show_menu(1, 0, 1); ?>
        </div>

This works very well

in the middel of the page we have the Main menu that should change with the selection of the language on the topmenu whit the items for NL

     Home (wysiwyg) (level 1)
     geschiedenis (wysiwyg) (level 1)
            Hoe het begon (wysiwyg) (level 2)
            De toekomst (wysiwyg) (level 2)
     over ons (wysiwyg) (level 1)

and if the choice is DE

     Startseite (wysiwyg) (level 1)
     Geschichte (wysiwyg) (level 1)
           wie hat es angefangen (wysiwyg) (level 2)
           die zukunft (wysiwyg) (level 2)
     Uber uns (wysiwyg) (level 1)


there should also change the Extra Menu ( witch is located on the left of the page) to the selected language and the following menu items

if NL is selected

     Wie zijn wij (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Voor foto´s (wysiwyg) (level 2)
            Na foto´s (wysiwyg) (level 2)

if DE is selected

     wer sind wir (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Bild vorher (wysiwyg) (level 2)
            Bild Nachher (wysiwyg) (level 2)

Does anyone has a code example for show_menu2


Greetings Carfreak