Mod_Multilingual_v1_7_4

user rating: average score 5.0, by 2 votesaverage score 5.0, by 2 votesaverage score 5.0, by 2 votesaverage score 5.0, by 2 votesaverage score 5.0, by 2 votes (click to vote)

Very Hot SnippetWB approved Snippet

Mod_Multilingual_v1_7_4

This snippet switches between different languages

Version 1.7.4
License GPL
Latest update Saturday, 04-Mar-17 15:54:19 UTC
Download Counter 453
 
Developer Luisehahne
 
Addon type Snippet
Category System Tools
WebsiteBaker Version >= 2.8.3 SP6
PHP Version >= 5.3.6
Forum Discussion (EN) Click here to visit
 
Download this addon

This snippet switches between different languages

To execute Multilingual you have to
1) Enable Page Languages
2) Page Level Limit higher 1 (folder level)
3) Required template modifications
see readme.txt
4) Setting up the page structure
Help designerguide

Language selection via the intro page no longer needed

5) After installing the Multilingual modul
In Modify Page Settings you find an extra field Pagecode with a directory listing with pages from default languages.
The folder level is limited by the value from Page Level Limit

a) Create your pages for the default language
b) Create your pages for the 2nd language
c) select a page in the 2nd language area and call Modify Page Settings
d) in field Pagecode select the default language page and save

6) Call procedure in Frontendtemplate

<?php $iMultiLang = 0; if (function_exists('language_menu')) { echo $sMultiLang = language_menu(); $iMultiLang = intval($sMultiLang!='');} ?>
Variable $iMultiLang is set to show the level 0 entries in show_menu2 or hidden them
echo show_menu2(0, SM2_ROOT+$iMultiLang, SM2_CURR+1, SM2_TRIM|SM2_BUFFER|SM2_PRETTY|SM2_NUMCLASS...
Back
X This website uses cookies. When you browse on this site, you agree to the use of cookies.