WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Bramus on August 11, 2009, 12:15:19 PM

Title: Showmenu2 help needed
Post 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:
Code: [Select]
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:
Code: [Select]
<?php show_menu2(11SM2_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!
Title: Re: Showmenu2 help needed
Post by: Pumpi on August 11, 2009, 12:30:39 PM
please try this show menu 2 code

Code: [Select]
show_menu2(1, 1, SM2_ALL,SM2_START+2);
Title: Re: Showmenu2 help needed
Post by: Bramus on August 11, 2009, 01:04:31 PM
Nothing is shown now, no NL or DE menu
Title: Re: Showmenu2 help needed
Post by: Pumpi on August 11, 2009, 01:26:01 PM
:?

oh sorry i have an error in the code try please

Code: [Select]
show_menu2(1, 1, SM2_START+2, SM2_ALL);
Title: Re: Showmenu2 help needed
Post by: Bramus on August 11, 2009, 01:47:02 PM
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.
Title: Re: Showmenu2 help needed
Post by: Pumpi on August 11, 2009, 02:09:14 PM
ok nice :) one step ;)

try

Code: [Select]
show_menu2(1, SM2_ROOT+1, SM2_START+2, SM2_ALL);
Title: Re: Showmenu2 help needed
Post by: Bramus on August 11, 2009, 02:19:25 PM
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
Title: Re: Showmenu2 help needed
Post by: Luckyluke on August 11, 2009, 02:27:15 PM
Hi,

On my site with 3 languages I did the folowing:

Code: [Select]
show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, .................
But, languages must be ON in the settings.

Grtz,
Luc
Title: Re: Showmenu2 help needed
Post by: Bramus on August 11, 2009, 02:38:58 PM
Hi,

On my site with 3 languages I did the folowing:

Code: [Select]
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.
Title: Re: Showmenu2 help needed
Post by: Pumpi on August 11, 2009, 03:12:57 PM
i see its run :D

what is finaly the sm2 code?
Title: Re: Showmenu2 help needed
Post by: Bramus on August 11, 2009, 03:14:49 PM
Used the code from luckyluke and gave all the pages their correct language (damn what a work ~150 pages)

Thanks for the help!
Title: Re: Showmenu2 help needed
Post by: Pumpi on August 11, 2009, 03:26:44 PM
ah ok that was the problem ;)

but not for pain only for learn :D