WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multilanguage + multimenu: clicking submenu the other menu dissapears: SOLVED!
Boudi:
Hi all,
after 14 hours of working behind my screen I simply don't see it any more. Here's the deal:
I'm working on a multilangual website with 2 menu's. One menu is horizontal, the other is vertical.
When clicking a subpage in the vertical menu, the horizontal menu dissapears. Note: this only happens when clicking on a subpage of the vertical menu.
I breaked a leg over it and thought the problem might be in the SM2 function but as for now I could not find any errors.
So as you can imagine...I'm stucked.
Here are the both SM2 menu's:
horizontal:
--- Code: ---<?php show_menu2(2, SM2_CURR, SM2_START, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
vertical:
--- Code: ---<?php show_menu2(1, SM2_ROOT+1, SM2_CURR+1, SM2_SIBLING); ?>
--- End code ---
Does anyone recognize this problem and/or knows how to solve this?
Any help would be appreciated.
Greetz,
Boudi
crnogorac081:
Did you tried to replace SM call for menu 1 with
<?php show_menu2(1, SM2_CURR, SM2_START, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
if it works, then is SM call for menu 1..
also, can you post a demo..or via pm..
cheers
erpe0812:
Hi Boudi
there is a simple and fantastic solution in the german forum:
https://forum.WebsiteBaker.org/index.php/topic,9833.msg78022.html#msg78022
I hope it is understandable, the code itself is :-)
Please give it a try.
I don't know if there is a similar thread in english.
If you don't understand it please come back and ask.
rgds
erpe
BerndJM:
Hi,
the most common error in this case is, that people think, they have to handle two menues, where it is in reality only one menu!
Most of the constallation could be handled with one menu, even if there are "two" menues on different places.
An other option could be (never investigated it) to change the menu order, the horizontal is your main menue, right? why it has the number two ???
Regards Bernd
LordDarkman:
I'm not useing a multilanguag page, but 2 menues. top is Main navigation and on the side is Subnavigation. Here are my calls, mybe you can just edit them to multilanguage.
--- Quote ---<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_TRIM,'[a][menu_title]</a>','','','','','');
?>
--- End quote ---
--- Quote ---<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, SM2_SIBLING
,'<span class="submenu">[ac][menu_title]</a></span>','','','','',''); ?>
--- End quote ---
CU Moritz
Navigation
[0] Message Index
[#] Next page
Go to full version