WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2 question
pieterb:
Hi everybody,
I'm working on a site where I have the following page structure:
NL
Nieuws
James
Muziek
Jimmy T & The Sizzling Hot Jazz Captains
Behind Your Conversation
18+
Theater
Onderwaterwereld
Contact
EN
Same as Dutch version
Now I would like to show the entire Dutch menu when the user is in the Dutch section. So including the third level elements. When the user is on the third level element, the menu should stay the same.
No matter what I try, I can't seem to get it to work. Can anyone point me in the right direction for the syntax for show_menu2?
Thanks so much in advance.
mjm4842:
Hi Pieterb,
Did you take a look at the examples on the demo page for show_menu2?
http://www.websitebakers.de/sm2/pages/enterprise.php
Best regards,
Michael
pieterb:
Hi mjm4842,
Of course. But I couldn't find a solution to my specific menu problem. I've tried with if statements, with extra variables, etc, but I can't seem to get it to work.
mjm4842:
It would seem to me that you could accomplish this using two separate calls to the show_menu2 function. That way you could create different behavious for the English and for the Dutch menu. From the users perspective, it would look like a single menu.
With best regards,
Michael
Hans:
Hi Pieter
Maybe this:
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_START); ?>
--- End code ---
?
And for the languages (hard coded with flags):
--- Code: ---<ul><li><a href="http://www.xxxxxxxxxx.nl/web/nl/welkom.php"><img src="http://www.xxxxxxxxxxx.nl/media/flags/NL.png" alt="Nederlands" /></a></li><li><a href="http://www.xxxxxxxxx.nl/web/en/welcome.php"><img src="http://www.xxxxxxxxxxxxxs.nl/media/flags/EN.png" alt="English" /></a></li></ul>
--- End code ---
If not send a PM so that I can show you the code from a site that has Dutch and English implemented.
Hans
EDIT: Here's the site: http://www.trinityghanaprojects.nl/web/nl/welkom.php. Is this what you mean?
Navigation
[0] Message Index
[#] Next page
Go to full version