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

Muli language menu not working as supposed

(1/1)

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:


--- Code: --- <td class="menu">
<?php 
if (SHOW_MENU) { 
// navigation menu
//show_menu();
show_menu(1, 1);
echo "<br>";
show_menu(1, 0, 1, true, "[a]<img src=" .WB_URL . "/media/flags/[menu_title].gif />[/a]", '', '', '', false, '', 0);
} ?>
--- End code ---
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:


--- Code: ---<tr>
<td colspan="2" class="footer">
&nbsp;
<?php show_menu(1, 0, 1, true, "[a]<img src=" .WB_URL . "/media/flags/[menu_title].gif />[/a]", '', '', '', false, '', 0); ?>
</td>
</tr>
--- End code ---
My menu is gone now  :? Why? Flags are okay as I want.

When I look to the page source I see the following:

--- Code: ---<a href="http://localhost/wb/pages/fr_home/photos.php" target="_top" ><img src=http://localhost/wb/media/flags/Photos.gif /></a>
--- End code ---
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



marmot:
Hi,

--- Quote from: honda4life on August 26, 2012, 10:17:05 AM ---Who kan help me?
--- End quote ---
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

Luisehahne:
Please use show_menu2(...

show_menu is a old one and will be removed.

Dietmar

badknight:

--- Quote from: Luisehahne on August 27, 2012, 05:55:55 PM ---Please use show_menu2(...

show_menu is a old one and will be removed.

Dietmar

--- End quote ---
show_menu2 documentation

Navigation

[0] Message Index

Go to full version