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(1, 1);
echo "<br>";
show_menu(1, 0, 1, true, "[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">
<?php show_menu(1, 0, 1, true, "[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
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
Please use show_menu2(...
show_menu is a old one and will be removed.
Dietmar
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
show_menu2 documentation (https://forum.websitebaker.org/index.php/topic,23012.0.html)