WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Multilingual menu

(1/3) > >>

Kolb:
Hello,

I have created this website http://www.kolb.be/luclammens/wb/pages/nl/home.php in four different languages

Attached you can find my page layout.

I want to change my language from any displayed page, as described in the help, but can't get it to work.
Can someone help me out? I just added 
--- Quote ---    <?php show_menu(1, 0, 1, true, "[a][menu_title][/a]", '', '', '', false, '', 0); ?>
--- End quote ---
in my index.php but this only shows NL as you can see on the site.

I want it to show NL - FR - EN - DE

What am I doing wrong?

[gelöscht durch Administrator]

crnogorac081:
Hi,

Try this:


--- Code: ---<?php show_menu(1, 1, 1, true, "[a][menu_title][/a]", &#39;&#39;, &#39;&#39;, &#39;&#39;, false, &#39;&#39;, 0); ?>

--- End code ---

More about show_menu you can find in WB help pages. The seccond parameter is changed from 0 - 1 It shows starting point of your menu level. Third parameter shows number of levels you want to display - in your case 1 will work, as you do not have submenu in your screenshoot :) If you do add submenus, you must change it to 2 or 0(infinite) to show submenus in this menu box..

cheers

Kolb:
Thanks for your fast reply,

I all ready did this in index.php and this only shows my 4 pages under NL. For an example you can visit the site. Any idea why?

crnogorac081:
Hi,

Now I see it displays all your NL pages, like in menu below.. Did you ment to show only image flags to change language ??

Kolb:
That is correct, flags are not necessary, I would prefer just text links.

Navigation

[0] Message Index

[#] Next page

Go to full version