rtgx

Výber jazyka pomocou HMENU typu language + prepínanie jazykov v TS

Vytvorené jazyky v BE

Vytvorené jazyky v BE

Typoscript setup

Jazykové menu# languages order: EN, SK, DE, IT, FR, ES, PL, RU

config.linkVars = L

[globalVar = GP:L=0]
config.sys_language_uid = 0
config.language = en
config.locale_all = en_GB

[globalVar = GP:L=1]
config.sys_language_uid = 1
config.language = sk
config.locale_all = sk_SK
config.sys_language_mode = content_fallback; 1,0

[globalVar = GP:L=2]
config.sys_language_uid = 2
config.language = de
config.locale_all = de_DE
config.sys_language_mode = content_fallback; 2,0

[globalVar = GP:L=3]
config.sys_language_uid = 3
config.language = it
config.locale_all = it_IT
config.sys_language_mode = content_fallback; 3,0

[globalVar = GP:L=4]
config.sys_language_uid = 4
config.language = fr
config.locale_all = fr_FR
config.sys_language_mode = content_fallback; 4,0

[globalVar = GP:L=5]
config.sys_language_uid = 5
config.language = es
config.locale_all = es_ES
config.sys_language_mode = content_fallback; 5,0

[globalVar = GP:L=6]
config.sys_language_uid = 6
config.language = pl
locale_all = pl_PL
config.sys_language_mode = content_fallback; 6,0

[globalVar = GP:L=7]
config.sys_language_uid = 7
config.language = ru
locale_all = ru_RU
config.sys_language_mode = content_fallback; 7,0
[global]

lib.menuLang = HMENU
lib.menuLang {
special = language
special.value = 0,1,2,3,4,5,6,7
special.normalWhenNoLanguage = 1
}
lib.menuLang.1 = TMENU
lib.menuLang.1 {
wrap = |
NO {
allWrap = |<span class="sep">&nbsp;</span>|*||*| |
ATagTitle = English || Slovak || Deutsch || Italiano || Francais || Espanol || Polski || Russian
stdWrap.setCurrent = EN || SK || DE || IT || FR || ES || PL || RU
stdWrap.current = 1
}
CUR < .NO
CUR = 1
CUR {
stdWrap.wrap = <strong>|</strong>
}
ACT = 1
ACT < .CUR
}

Výsledný HTML kód

<a href="index.php?id=1&amp;L=0" title="English"><strong>EN</strong></a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=1" title="Slovak">SK</a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=2" title="Deutsch">DE</a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=3" title="Italiano">IT</a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=4" title="Francais">FR</a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=5" title="Espanol">ES</a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=6" title="Polski">PL</a><span class="sep">&nbsp;</span>
<a href="index.php?id=1&amp;L=7" title="Russian">RU</a>
 
Žiadne dokumenty ani odkazy k tejto stránke.