WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Drop down menu + multilingual site

(1/2) > >>

JonH:
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?

erpe0812:
Hi JonH,

try
--- Code: ---<?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;); ?>
--- End code ---

rgds

erpe

JonH:
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?

erpe0812:
I think it will help  you to  you read some help pages

rgds

erpe

simmy2000:
try this:

--- Code: ---<?php show_menu2(1, SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_CURRTREE,&#39;<li>[a][menu_title]
--- End code ---
:-)

Navigation

[0] Message Index

[#] Next page

Go to full version