Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:31:02 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155552 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: template for multi language site  (Read 585 times)
alanek

Offline Offline

Posts: 1


« on: September 21, 2011, 01: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
Tez Oner

Offline Offline

Posts: 50



WWW
« Reply #1 on: September 30, 2011, 05: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.

demosite.vanallerle i.com

Cheerz
Logged

Tez | vanAllerlei
--------------------------------
Media • Design • Strategy
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!