WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Muli language menu not working as supposed
  • Print
Pages: [1]   Go Down

Author Topic: Muli language menu not working as supposed  (Read 7313 times)

Offline honda4life

  • Posts: 6
Muli language menu not working as supposed
« on: August 26, 2012, 10:17:05 AM »
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: [Select]
<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:

Code: [Select]
<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>
My menu is gone now  :? Why? Flags are okay as I want.

When I look to the page source I see the following:
Code: [Select]
<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



Logged

Offline marmot

  • Posts: 1103
Re: Muli language menu not working as supposed
« Reply #1 on: August 26, 2012, 08:17:57 PM »
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
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Muli language menu not working as supposed
« Reply #2 on: August 27, 2012, 05:55:55 PM »
Please use show_menu2(...

show_menu is a old one and will be removed.

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

Offline badknight

  • WebsiteBaker Org e.V.
  • **
  • Posts: 819
  • Gender: Male
    • pinzweb
Re: Muli language menu not working as supposed
« Reply #3 on: October 22, 2012, 04:57:35 PM »
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
Logged
Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Muli language menu not working as supposed
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2