template for multi language site

jc2

Good job, Tez.
Some people may also want to substitute

SM2_START, SM2_ALL
into
SM2_ALL, SM2_ALL

Depends on how do they want their menu to be.

Tez Oner

#2
Hi,

for a multilanguage site it's wise to make 2 (or more) menu branches like:

root:

- US-EN /// ("menulink" item with redirect to first child (main)
    - Main
    - Contact
    - Etc...
- NL-NL ///  ("menulink" item with redirect to first child (hoofpag..)
    - Hoofdpagina
    - Contact
    - Etc...

and... if you than have this tag in the template:

<?php show_menu2(0, SM2_ROOT+1, SM2_START, SM2_ALL); ?>

it should show only the brance menu items of the pages for a certain language..

You can also check out my template, which has showmenu2 and multlang incl.

revamds.com

Cheerz
Tez | VA-MDS / MMO | communications
--------------------------------------------
info@va-mds.com / [url="http://va-mds.com"]http://va-mds.com[/url]

alanek

Hi,

I am a newbie to WebsiteBaker and I need some help.

I have been following the multilingual Website tutorial from here:
http://www.websitebaker2.org/en/help/designer-guide/multilingual-websites.php

I have got most of the way through and the switching works, but when I get to the part
"Hide the container pages (parents)"  with the instruction to modify the template index.php with the following:


Change the following line int the index.php file of your template
<?php show_menu(); ?>

into:
<?php show_menu(1, 1); ?>

Here I have a problem.  I want to use the "Office Time" template from:
http://www.escpro.de/esc/WebsiteBaker/free-templates.php

and the show_menu line is like this - a little more complicated !!!:

<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, '<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>', "</li>", '<ul class="ullev[level]">', "</ul>", true, '<ul id="header_menu" class="menu">');?><br style="clear:left;"/>

How do I modify this line of code to hide the container pages as per the tutorial ?

I also tried the Allcss2 template and had exactly the same problem.  The results was either a completely blank screen in the front end or the menus were corrupted.

Any help would be much appreciated.


Alan