Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 30.11.05, 13:45
Forum Zuschauer
 
Registriert seit: 30.11.05
Alter: 21
Beiträge: 4

Flaggen anzeigen im Layout


Hallo habe folgendes Problem, alles wie inder Beschreibung von Jochen Weiland u. Kasper gemacht. Doch meine Flaggen zeigt es nur im Template "TU" an. Ich habe aber das Template "CrCPH" und möchte das dort die Flagge oben erscheint, was muss ich machen??

mfg

chris

Hier mein Skript das ich unter Setup eingetragen habe

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
page.10.43 = PHP_SCRIPT
page.10.43.file = fileadmin/scripts/my_languageMenu.php

config.linkVars = L
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE
# English language, sys_language.uid = 3
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = en
config.locale_all = english
[global]

Geändert von StGaensler (30.11.05 um 14:56 Uhr).
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 30.11.05, 14:25
Forum Stammgast
 
Registriert seit: 18.05.05
Beiträge: 156

Du musst die php anpassen


Du wirst ja irgendwo eine php Datei includen (Weiland = Sprachmenu.php)

In dieser Datei kannst du die Links entsprechend bearbeiten:

PHP-Code:
$flags[] = '<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=2" target=_top><img src="fileadmin/layout/image/flag_de.jpg" width="14" height="10" border="0"></a>'
Gruß
Tom

Geändert von StGaensler (30.11.05 um 14:57 Uhr).
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 30.11.05, 14:35
Forum Zuschauer
 
Registriert seit: 30.11.05
Alter: 21
Beiträge: 4

welche Links muss ich da genau bearbeiten?


Ich hab vor 2 Tagen neu angefangen mit Typo3 was muss ich da jetzt genau machen?

Ich poste hier mal das My_Language_menu.php ist allerdings von Kasper

PHP-Code:
<?php
/***************************************************************
*  Copyright notice
*  
*  (c) 1999-2002 Kasper Skårhøj (kasper@typo3.com)
*  All rights reserved
*
*  This script is part of the Typo3 project. The Typo3 project is 
*  free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.

*  The GNU General Public License can be found at
*  [url]http://www.gnu.org/copyleft/gpl.html[/url].
*  A copy is found in the textfile GPL.txt and important notices to the license 
*  from the author is found in LICENSE.txt distributed with these scripts.
*

*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
 * example_languageMenu.php
 *
 * THIS IS AN EXAMPLE designed to work with the official Typo3 testsite, section "Another site in the ..."
 *
 * @author    Kasper Skårhøj <kasper@typo3.com>
 */


 
 // First, select all pages_language_overlay records on the current page. Each represents a possibility for a language.
$query "SELECT * FROM pages_language_overlay WHERE pid=".$GLOBALS["TSFE"]->id.$GLOBALS["TSFE"]->sys_page->enableFields("pages_language_overlay")." GROUP BY sys_language_uid";

$res mysql(TYPO3_db,$query);
$langArr=array();
while(
$row=mysql_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 src="t3lib/gfx/content_client.gif" width="7" height="10" align=middle>';

// 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.
$flags = array();
$flags[] = ($GLOBALS["TSFE"]->sys_language_uid==0?$pointer:"").'<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=0" target=_top><img src="media/uploads/flag_de.gif" width="21" height="13" hspace=5 border="0"></a>';
$flags[] = ($GLOBALS["TSFE"]->sys_language_uid==3?$pointer:"").'<a href="index.php?id='.$GLOBALS["TSFE"]->id.'&L=3" target=_top><img src="media/uploads/flag_uk'.($langArr[3]?"":"_d").'.gif" width="21" height="13" hspace=5 border="0"></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 '<table border=0 cellpadding=0 cellspacing=0><tr><td><img src=clear.gif width=30 height=1></td><td>'.implode("",$flags).'</td></</tr></table>';

?>

Geändert von StGaensler (30.11.05 um 14:57 Uhr).
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
sr_language unterschiedliche Flaggen arlon TYPO3 4.x Fragen und Probleme 0 29.07.07 10:49
Layout Flaggen Menü ändern Souchak GMENU, HMENU, TMENU und Co. 1 06.11.06 10:57
Multilanguage Flaggen bleiben grau voximil TYPO3 4.x Fragen und Probleme 0 20.09.06 19:24
sr_langmenu - keine flaggen olibert Alle anderen Extensions 0 21.08.06 16:40
Layout der Überschrift ändern/aktuelle Navigation anzeigen ilinca TYPO3 3.x Rich Text Editor 10 13.04.06 09:22


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


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