Muli language menu not working as supposed

badknight

Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...

Luisehahne

Please use show_menu2(...

show_menu is a old one and will be removed.

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

marmot

Hi,
Quote from: honda4life on August 26, 2012, 10:17:05 AM
Who kan help me?
at first glance the html in the footer looks fine. Maybe the footer is hidden by css? If you put some text into the footer, is this shown on your page?
Is there a link to the page for us?

regards

honda4life

Hello everyone,

I'm very new to WebsiteBaker but it's a great thing.
I'm trying to build a multi language site and i'm using the simple template to build my own layout.

Based on the following article: http://www.websitebaker2.org/en/help/designer-guide/multilingual-websites.php?lang=EN

Okay, let's add this to the menu:

<td class="menu">
<?php 
if (SHOW_MENU) { 
// navigation menu
//show_menu();
show_menu(11);
echo "<br>";
show_menu(101true"[a]<img src=" .WB_URL "/media/flags/[menu_title].gif />[/a]"''''''false''0);
?>

As you can see original menu commented out, insert a break, and add the language flags.
Okay, that's good but I want the language flags on a diffrent location.
Let's move them into the header:

<tr>
<td colspan="2" class="footer">
&nbsp;
<?php show_menu(101true"[a]<img src=" .WB_URL "/media/flags/[menu_title].gif />[/a]"''''''false''0); ?>
</td>
</tr>

My menu is gone now  :? Why? Flags are okay as I want.

When I look to the page source I see the following:
<a href="http://localhost/wb/pages/fr_home/photos.php" target="_top" ><img src=http://localhost/wb/media/flags/Photos.gif /></a>
Why are the links now changed to images? I want the menu items.
Again removing the show_menu from the header it works great :s

Who kan help me?
Thanks