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.9 R24 is now available!


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.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Multiple menus not working
  • Print
Pages: [1]   Go Down

Author Topic: Multiple menus not working  (Read 4929 times)

KenZo

  • Guest
Multiple menus not working
« on: April 27, 2009, 10:10:13 PM »
Hi all!

I'm starting my own new business and am integrating the website into WB.
I have to setup a website to work with multiple menus.
(Note the first link is the one I'm working on and the second is a simple HTML sample of the website as it should be later).

I have the multiple menus mentioned in the info.php file of my template.

This is de code in my info.php of the template:
Code: [Select]
// definitions for multiple menues (required if more than one menu is used)
$menu[1]    = 'Menu ROOT';
$menu[2]    = 'Menu EN 1';
$menu[3]    = 'Menu EN 2';
$menu[4]    = 'Menu EN 3';

Screenshot 1: Menu listing fyi
Screenshot 2: Page example fyi
Screenshot 3: WB settings fyi


Also a strange thing is, that in my template file I use only the English menu (2 to 4) but when I go to http://sqvision.eu/pages/fr/profil.php the French version shows the French menu, but it's the same template!!!
How can this actually happen?

This is de code I use in my index.php template file:
Code: [Select]
<?php show_menu(2,1,-1,true,&#39;<li><span [class]>[a][menu_title][/a]</span>&#39;,&#39;</li>&#39;,&#39;<ul id="menu"><li><span class="menu_top"></span></li>&#39;,&#39;<li><span class="menu_bottom"></span></li></ul>&#39;); ?>

<?php show_menu(3,1,-1,true,&#39;<li><span [class]>[a][menu_title][/a]</span>&#39;,&#39;</li>&#39;,&#39;<ul id="menu"><li><span class="menu_top"></span></li>&#39;,&#39;<li><span class="menu_bottom"></span></li></ul>&#39;); ?>

<?php show_menu(4,1,-1,true,&#39;<li><span [class]>[a][menu_title][/a]</span>&#39;,&#39;</li>&#39;,&#39;<ul id="menu"><li><span class="menu_top"></span></li>&#39;,&#39;<li><span class="menu_bottom"></span></li></ul>&#39;); ?>

When I use the above code the problem is that each menu doesn't come separately but gets like in "3" long menus starting over from the root again instead of 3 short ones like in the example.
Screenshot of the result fyi

Can someone help me resolving this issue? I really don't understand what I'm possibly doing wrong.

I could also use "show_menu2" but first of all when I tried to use it no code at all showed up in the HTML. Second I don't understand half a s*** as a developer (not PHP) of what the developer of "show_menu2" tries to explain to me in his manual. If somebody can help me to setup the multiple menus in "show_menu2" by providing me the neccessary code as for "show_menu" I would really appreciate it.

Thank you in advance for your fast replies! Appreciate it.

Regards

Kenzo
« Last Edit: April 29, 2009, 11:31:32 AM by KenZo »
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Multiple menus not working
« Reply #1 on: April 29, 2009, 11:47:49 AM »
Dear Kenzo,
i recieved your PM, but unfortunatly I can't help you with this.
I did only one Multilanguage Homepage until now and it was a small one.

I hope somebody else can help you with this.

Good Luck,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Multiple menus not working
 

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