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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • Drop down menu + multilingual site
  • Print
Pages: [1]   Go Down

Author Topic: Drop down menu + multilingual site  (Read 5994 times)

JonH

  • Guest
Drop down menu + multilingual site
« on: January 23, 2009, 03:44:53 PM »
Hi,

My site structure is

Lang 1
 - frontpage
 - page 2

Lang 2
 - frontpage

Lang 3
 - frontpage

Now I need a drop down menu showing only pages under a language.

This is what I have now:
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
and it looks like this, which is wrong:
http://www.nopef.com/new/pages/se/om-nopef/syfte.php

How do I make it show one level down?
Logged

erpe0812

  • Guest
Re: Drop down menu + multilingual site
« Reply #1 on: January 23, 2009, 04:32:23 PM »
Hi JonH,

try
Code: [Select]
<?php show_menu2(1, SM2_ROOT+1, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, &#39;<ul id="header_menu" class="menu">&#39;); ?>
rgds

erpe
Logged

JonH

  • Guest
Re: Drop down menu + multilingual site
« Reply #2 on: January 23, 2009, 04:55:43 PM »
Thanks erpe, that's one step closer! Now I just need the subpages of the "inactive" languages to not show up in the menu. Only pages under 1 language must be shown. Any ideas?
Logged

erpe0812

  • Guest
Re: Drop down menu + multilingual site
« Reply #3 on: January 23, 2009, 06:22:39 PM »
I think it will help  you to  you read some help pages

rgds

erpe
Logged

simmy2000

  • Guest
Re: Drop down menu + multilingual site
« Reply #4 on: January 24, 2009, 09:38:58 PM »
try this:
Code: [Select]
<?php show_menu2(1, SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_CURRTREE,&#39;<li>[a][menu_title] :-)
Logged

JonH

  • Guest
Re: Drop down menu + multilingual site
« Reply #5 on: January 25, 2009, 10:50:03 PM »
Thanks simmy2000! It works   :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Drop down menu + multilingual site
 

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