WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Showmenu2 help needed
  • Print
Pages: [1]   Go Down

Author Topic: Showmenu2 help needed  (Read 8079 times)

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Showmenu2 help needed
« 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(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!
« Last Edit: August 12, 2009, 07:52:41 PM by Bramus »
Logged
BRAMUS Internet Services

Pumpi

  • Guest
Re: Showmenu2 help needed
« Reply #1 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);
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Showmenu2 help needed
« Reply #2 on: August 11, 2009, 01:04:31 PM »
Nothing is shown now, no NL or DE menu
Logged
BRAMUS Internet Services

Pumpi

  • Guest
Re: Showmenu2 help needed
« Reply #3 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);
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Showmenu2 help needed
« Reply #4 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.
« Last Edit: August 11, 2009, 01:59:29 PM by Bramus »
Logged
BRAMUS Internet Services

Pumpi

  • Guest
Re: Showmenu2 help needed
« Reply #5 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);
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Showmenu2 help needed
« Reply #6 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
« Last Edit: August 11, 2009, 02:24:02 PM by Bramus »
Logged
BRAMUS Internet Services

Offline Luckyluke

  • Posts: 556
  • Gender: Male
  • Let's Rock
Re: Showmenu2 help needed
« Reply #7 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
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Showmenu2 help needed
« Reply #8 on: August 11, 2009, 02:38:58 PM »
Quote from: 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

Turned languages on and used you showmenu but same as above, showing all the menu's on all the languages.
Logged
BRAMUS Internet Services

Pumpi

  • Guest
Re: Showmenu2 help needed
« Reply #9 on: August 11, 2009, 03:12:57 PM »
i see its run :D

what is finaly the sm2 code?
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Showmenu2 help needed
« Reply #10 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!
Logged
BRAMUS Internet Services

Pumpi

  • Guest
Re: Showmenu2 help needed
« Reply #11 on: August 11, 2009, 03:26:44 PM »
ah ok that was the problem ;)

but not for pain only for learn :D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Showmenu2 help needed
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2