Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 29.05.07, 15:19
Forum Newbie
 
Registriert seit: 22.05.07
Beiträge: 36

Default language und Fahnen


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 02.06.07, 11:45
Benutzerbild von MistaD
TYPO3 Forum Team
Moderator
 
Registriert seit: 25.01.06
Beiträge: 1.457

Hallo,

schau mal hier, das sollte dir helfen.


__________________
Gruss
MD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 05.06.07, 16:22
Forum Newbie
 
Registriert seit: 22.05.07
Beiträge: 36

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>';

?>
Grüße
Gerik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ä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


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:07 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0