WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Bramus on August 11, 2009, 12:15:19 PM
-
Hi all,
Working on a new project and i'm in a fight with showmenu2. The page layout is:
NL
Home
Bedrijf
Het bedrijf
Medewerkers
DE
Home
Betrieb
Das betrieb
Employees
So multilangual NL / DE and then a few items, those items contain subitems. These subitems on Bedrijf or Betrieb are shown with a dropdown. Now the problem; i want to make sure people dont have to click on Bedrijf/Betrieb to show the dropdown. When working with:
<?php show_menu2(1, 1, SM2_ALL,SM2_ALL); ?>
it did show in the NL pages everything fine, but when i added some german pages it didnt work, no menu was shown.
Any one that can help me with this?
So as you can see when you click Bedrijf you will see the drop down menu but i want it to be visible all the time when hovering.
Thanks!
-
please try this show menu 2 code
show_menu2(1, 1, SM2_ALL,SM2_START+2);
-
Nothing is shown now, no NL or DE menu
-
:?
oh sorry i have an error in the code try please
show_menu2(1, 1, SM2_START+2, SM2_ALL);
-
now the dropdown is working, but on every page it is showing the NL subpages instead of the german pages. so what ever language i chose i will get a dutch menu.
-
ok nice :) one step ;)
try
show_menu2(1, SM2_ROOT+1, SM2_START+2, SM2_ALL);
-
Done and now it is showing all menu's in all languages fully, so NL showing all menu's, NL + DE.
When in DE it is also showing NL + DE
-
Hi,
On my site with 3 languages I did the folowing:
show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, .................
But, languages must be ON in the settings.
Grtz,
Luc
-
Hi,
On my site with 3 languages I did the folowing:
show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, .................
But, languages must be ON in the settings.
Grtz,
Luc
Turned languages on and used you showmenu but same as above, showing all the menu's on all the languages.
-
i see its run :D
what is finaly the sm2 code?
-
Used the code from luckyluke and gave all the pages their correct language (damn what a work ~150 pages)
Thanks for the help!
-
ah ok that was the problem ;)
but not for pain only for learn :D