WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multiple menus not working
(1/1)
KenZo:
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: ---// 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';
--- End code ---
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: ---<?php show_menu(2,1,-1,true,'<li><span [class]>[a][menu_title][/a]</span>','</li>','<ul id="menu"><li><span class="menu_top"></span></li>','<li><span class="menu_bottom"></span></li></ul>'); ?>
<?php show_menu(3,1,-1,true,'<li><span [class]>[a][menu_title][/a]</span>','</li>','<ul id="menu"><li><span class="menu_top"></span></li>','<li><span class="menu_bottom"></span></li></ul>'); ?>
<?php show_menu(4,1,-1,true,'<li><span [class]>[a][menu_title][/a]</span>','</li>','<ul id="menu"><li><span class="menu_top"></span></li>','<li><span class="menu_bottom"></span></li></ul>'); ?>
--- End code ---
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
Stefek:
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
Navigation
[0] Message Index
Go to full version