Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 01:31:26 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155533
Posts in
21713
Topics by
7738
Members
Latest Member:
Pattieardathfe
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
Multilanguage + multimenu: clicking submenu the other menu dissapears: SOLVED!
Pages: [
1
]
Go Down
Author
Topic: Multilanguage + multimenu: clicking submenu the other menu dissapears: SOLVED! (Read 902 times)
Boudi
Addon Team
Offline
Posts: 816
Multilanguage + multimenu: clicking submenu the other menu dissapears: SOLVED!
«
on:
October 22, 2009, 09:58:05 PM »
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">'
);
?>
vertical:
Code:
<?php show_menu2
(
1
,
SM2_ROOT
+
1
,
SM2_CURR
+
1
,
SM2_SIBLING
);
?>
Does anyone recognize this problem and/or knows how to solve this?
Any help would be appreciated.
Greetz,
Boudi
«
Last Edit: October 23, 2009, 12:12:00 PM by Boudi
»
Logged
...:: Bake the Unbakable ::...
crnogorac081
AddOn Development
Offline
Posts: 1706
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears
«
Reply #1 on:
October 22, 2009, 10:09:12 PM »
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
«
Last Edit: October 22, 2009, 10:11:38 PM by crnogorac081
»
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
erpe
Offline
Posts: 2077
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears
«
Reply #2 on:
October 22, 2009, 10:33:02 PM »
Hi Boudi
there is a simple and fantastic solution in the german forum:
http://www.websitebaker2.org/forum/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
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
BerndJM
Offline
Posts: 1764
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears
«
Reply #3 on:
October 23, 2009, 01:55:09 AM »
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
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.
LordDarkman
Development Team
Offline
Posts: 343
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears
«
Reply #4 on:
October 23, 2009, 03:00:44 AM »
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>','','','','','');
?>
Quote
<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, SM2_SIBLING
,'<span class="submenu">[ac][menu_title]</a></span>','','','','',''); ?>
CU Moritz
Logged
Boudi
Addon Team
Offline
Posts: 816
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears
«
Reply #5 on:
October 23, 2009, 08:54:05 AM »
Hi all,
After 9 hours of sleep, feeding the kids, drinking a fine brand of coffee, I'm back to read the comments.
First of all, thank you for your responds and solutions. Great to see that there's always a good back up if you're lost at some point.
Some of you thought the horizontal menu was the main menu, it isn't, the vertical menu is the main menu.
Now I will take a closer look at all your solutions and will come back with an update here.
Greetz,
Boudi
UPDATE:
I read all your reactions. The one from Erpe, from a german thread did the amazing trick! So simple!
But that code I slightly changed in order to take the CSS style effect on the menu (the example in the German forum disables a CSS style when placing the SM2 in a <div>)
Code:
<?php show_menu2
(
2
,
$wb
->
page
[
'root_parent'
],
SM2_ALL
,
SM2_ALL
|
SM2_PRETTY
,
false
,
"\n</li>"
,
false
,
false
,
false
,
''
);
?>
Thank you all for your time, help and suggestions!
«
Last Edit: October 23, 2009, 12:15:46 PM by Boudi
»
Logged
...:: Bake the Unbakable ::...
crnogorac081
AddOn Development
Offline
Posts: 1706
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears: SOLVED!
«
Reply #6 on:
November 16, 2010, 04:34:56 PM »
Hi Boudi,
I Just encountered same issue using Easy Multilanguage link snippet , and thanks for solution !!!
the part
Code:
$wb->page['root_parent'], SM2_ALL, SM2_ALL | SM2_PRETTY,
perfectly did the job for me.. I already spent several hours working on a solution myself, then I searched the forum..
Silly me..
All best,
Ivan
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Boudi
Addon Team
Offline
Posts: 816
Re: Multilanguage + multimenu: clicking submenu the other menu dissapears: SOLVED!
«
Reply #7 on:
November 16, 2010, 04:58:33 PM »
I know the feeling...spending hours and hours without results
Glad to hear that it is working though!
Boudi
Logged
...:: Bake the Unbakable ::...
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...