und was ist default(0)?
Lesestoff, da steht alles dazu drin:
http://typo3.org/documentation/docum...de/1.0.0/view/
Hallo
möchte eine mehrsprachige Seite anlegen.
habe im Template folgendes eingetragen:
linkVars = L
sys_language_uid = 3
language = de
locale_all = de_DE
sys_language.uid = 2
[globalVar = GP:L = 1]
sys_language_uid = 1
language = eng
[global]
sys_language.uid = 2
[globalVar = GP:L = 1]
sys_language_uid = 1
language = ru
[global]
Deutsch hat id 3, englisch id 2 und russisch id 3. Aber irgendwie wird es nicht korrekt angeziegt.
www.jan-weichold.de
und was ist default(0)?
Lesestoff, da steht alles dazu drin:
http://typo3.org/documentation/docum...de/1.0.0/view/
TYPO3 · MySQLDumper · dislabs
·
manche Mühlen mahlen schneller ...
"Ich habe Rücken"
Horst Schlämmer
also default ist deutsch. Bloß bei den Sprach id in der Listenansicht gibt es die Null nicht.
das PHP Script sieht so aus (Ausschnitt):
// Set each icon. If the language is the current, red arrow is printed to the left. If the language is NOT found (represented by a pages_language_overlay record on this page), the icon is dimmed and not linked.
$flags = array();
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==3?$pointer:'').($GLOBALS['TSFE']->sys_language_uid!=0?'<a href="'.htmlspecialchars('?&L=0').'" target="_top"><img class="flag" src="fileadmin/img/flag_de.gif" width="21" height="13" alt="Deutsch" title="Deutsch" /></a>':'<img class="flag" src="fileadmin/img/flag_de.gif" width="21" height="13" alt="Deutsch" title="Deutsch" />');
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==2?$pointer:'').($GLOBALS['TSFE']->sys_language_uid!=1?($langArr[1]?'<a href="'.htmlspecialchars('?&L=1').'" target="_top"><img class="flag" src="fileadmin/img/flag_uk.gif" width="21" height="13" alt="English" title="English" /></a>':'<img class="flag" src="fileadmin/img/flag_uk_d.gif" width="21" height="13" alt="English" title="English - not available yet" />'):'<img class="flag" src="fileadmin/img/flag_uk.gif" width="21" height="13" alt="English" title="English" />');
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==1?$pointer:'').($GLOBALS['TSFE']->sys_language_uid!=2?($langArr[2]?'<a href="'.htmlspecialchars('?&L=2').'" target="_top"><img class="flag" src="fileadmin/img/flag_ru.gif" width="21" height="13" alt="Russian" title="Francais" /></a>':'<img class="flag" src="fileadmin/img/flag_fr_d.gif" width="21" height="13" alt="Russian" title="not available" />'):'<img class="flag" src="fileadmin/img/flag_ru_d.gif" width="21" height="13" alt="Russian" title="not available" />');
DANKE Problem gelöst!
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)