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 »
  • template for multi language site
  • Print
Pages: [1]   Go Down

Author Topic: template for multi language site  (Read 12461 times)

alanek

  • Guest
template for multi language site
« on: September 21, 2011, 02:17:16 PM »
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
Logged

Offline Tez Oner

  • Posts: 257
  • "...it's possible..."
    • VA-MDS / MMO | communications
Re: template for multi language site
« Reply #1 on: September 30, 2011, 06:09:13 PM »
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
« Last Edit: June 17, 2013, 11:23:01 PM by Tez Oner »
Logged
Tez | VA-MDS / MMO | communications
--------------------------------------------
info@va-mds.com / http://va-mds.com

Offline jc2

  • Posts: 1
Re: template for multi language site
« Reply #2 on: July 26, 2013, 01:48:37 PM »
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.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • template for multi language site
 

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