![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hallo, bei mir werden alle Fahnen ausgeblendet, wenn ich den Seiteninhalt lediglich in der Default Sprache angelegt habe. Warum wird die Fahne der Default language nicht eingeblendet? Ich muss stets unter Alternative Page Language zusätzlich die Default-Language hinzufügen. Weiß jemand wieso? Gruß, Gerik |
|
#2
| ||||
| ||||
|
__________________ Gruss MD |
|
#3
| |||
| |||
| Hallo, danke für Deinen Link. Leider passt der von Dir referenzierte Beitrag meiner Meinung nach nicht zu meinem Problem, da ich den Sprachselektor verwende. Ich füge einfach mal den Inhalt meines Sprachselektors hier hinein: Code: if (!is_object($this)) die ('Error: No parent object present.');
// First, select all pages_language_overlay records on the current page. Each represents a possibility for a language.
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages_language_overlay', 'pid='.intval($GLOBALS['TSFE']->id).$GLOBALS['TSFE']->sys_page->enableFields('pages_language_overlay'), 'sys_language_uid');
$langArr = array();
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$langArr[$row['sys_language_uid']] = $row['title'];
}
// Little red arrow, which is inserted to the left of the flag-icon if the TSFE->sys_language_uid equals the language uid (notice that 0=english, 1=danish and 2=german is SPECIFIC to this database, because these numbers refer to uid's of the table sys_language)
$pointer = '<img class="arrow" src="fileadmin/img/arrow.gif" width="7" height="10" alt="" />';
// 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[] = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=0').'" target="_top"><img src="fileadmin/img/flag_en'.($langArr[0]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
$flags[] = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=1').'" target="_top"><img src="fileadmin/img/flag_de'.($langArr[1]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
$flags[] = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=2').'" target="_top"><img src="fileadmin/img/flag_es'.($langArr[2]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
$flags[] = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=3').'" target="_top"><img src="fileadmin/img/flag_fr'.($langArr[3]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
$flags[] = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=4').'" target="_top"><img src="fileadmin/img/flag_cn'.($langArr[4]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
// Make the little menu. Notice, the menu does ONLY transfer the page-id and the "L" variable (which is also SPECIFIC for this website because "L" has been used in the extension template used to control the language setup)
$content = '<div class="langMenu">'.implode($flags).'</div>';
?> Gerik |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Labels nur in default Language bei Sprachwechsel | Iceman | News (tt_news, mininews und Co) | 0 | 27.05.08 15:10 |
| Gelöst Mehrsprachigkeit - Nur Default language wird angezeigt | Chrisse | TYPO3 4.x Fragen und Probleme | 2 | 27.12.07 11:23 |
| In FCE Image der default language nehmen | sissi | TemplaVoila | 3 | 26.06.07 13:52 |
| Fähnchen für default language wird nicht angezeigt. | gerik | TYPO3 4.x Fragen und Probleme | 0 | 24.05.07 12:57 |
| Fahnen im Sprachwechsler: languageMenu.php | paopao | TYPO3 4.x Fragen und Probleme | 15 | 17.11.06 12:58 |