Liebe Typo3 User,
nachdem ich auf jweiland.net ein Tutorial zur Sprachumschaltung gefunden habe und dieses auch zum Laufen bringen konnte, war ich schon froh dass es endlich funktionierte, jedoch habe ich nun festgestellt, dass die Parameter bei tt_news und bei anderen Extentions, wie z.b. abcourses nicht weitergegeben werden.
Das Ganze basiert auf dem Tutorial von Kasper und wird mit einer PHP Datei realisiert:
<?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
* http://www.gnu.org/copyleft/gpl.html.
* 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"];
}
// 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[] = '<a href="index.php?id='.$GLOBALS[" tsfe-="">id.'&L=1" target=_top><img src="/fileadmin/image/flaggen/en.jpg" alt="English" /></a>';
$flags[] = '<a href="index.php?id='.$GLOBALS[" tsfe-="">id.'&L=4" target=_top><img src="/fileadmin/image/flaggen/fr.jpg" alt="French" /></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="sprache">'.implode("",$flags).'</div>';
?>
Mein TS sieht so aus:
#Englisch
config.sys_language_uid = 0
config.language = en
config.locale_all = english
#Franzoesisch , sys_language.uid = 4
[globalVar = GP:L = 4]
config.sys_language_uid = 4
config.language = fr
config.locale_all = french
[global]
Ich habe auch schon ganz viele Seiten gefunden, die eine Lösung anbieten für eine Parameterweitergabe, jedoch nur für eine Lösung, wenn das Menü mit TS generiert wird - oder habe ich da etwas falsch verstanden?
Gibt es eine Möglichkeit die Parameter mit diesen Skipten weiter zu geben?
Viele Grüße
Heinz Eckert