Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 27.12.06, 14:07
Forum Newbie
 
Registriert seit: 29.05.06
Alter: 25
Beiträge: 15
news mehrsprachig

hallo, ich möchte die mehrsprachigkeit der news nutzen komme aber nicht dahinter wo mein fehler ist:

folgendermassen sieht mein konfigurationsversuch aus:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
plugin.tt_news {
singlePid = 19
backPid = 6
archiveTypoLink.parameter = 18
datetimeDaysToArchive = 14
latestLimit = 5
pid_list = 6
searchPid = 17
sys_language_mode = strict
}

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
[globalVar = GP:L = 9]
config.sys_language_uid = 9
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de

[global]


[globalVar = GP:L =8]
config.sys_language_uid = 8
config.language = dk
config.locale_all = dk_DK
config.htmlTag_langKey = dk
[global]

und das language menu:
PHP-Code:
<?php
/***************************************************************
*  Copyright notice
*
*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@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!
***************************************************************/
/**
 * Creates a language-selector menu with three flags, an english, a danish and a german flag for each language supported on the site.
 *
 * THIS IS AN EXAMPLE designed to work with the official TYPO3 testsite, section "Another site in the ..."
 * You will have to program a similar menu for your own case.
 *
 * $Id: example_languageMenu.php 1425 2006-04-12 19:42:41Z ingmars $
 * Revised for TYPO3 3.6 June/2003 by Kasper Skaarhoj
 * XHTML compliant
 *
 * @author    Kasper Skaarhoj <kasperYYYY@typo3.com>
 */


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 src="'.t3lib_extMgm::siteRelPath('cms').'tslib/media/icons_misc/content_client.gif" width="7" height="10" align="middle" 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.
$flags = array();
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==0?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=0').'" target="_top"><img src="typo3/sysext/cms/tslib/media/uploads/flag_uk.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==8?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=8').'" target="_top"><img src="typo3/sysext/cms/tslib/media/uploads/flag_dk'.($langArr[2]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==9?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=9').'" target="_top"><img src="typo3/sysext/cms/tslib/media/uploads/flag_de'.($langArr[1]?'':'_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 style="width: 200px; background-color: #F0CB21; margin:0px; margin-top: 5 px; padding:0px; padding-top:3px; padding-bottom: 3px; border: 0px dotted #333333; border-left: 0px dotted #333333; border-right: 0px dotted #333333;">'.implode('',$flags).'</div>';

?>
als alternative sprachen habe ich im sys ordner deutsch (id68) und dänisch(id69) angelegt. also eigentlich alle schritte der doku ausgeführt - aber es funktioniert nicht. es heisst immer keine news in der ansicht... für hinweise bin ich sehr dankbar.

mfg
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
Sponsored Links
Antwort


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
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 anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB 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
FCE mehrsprachig stefankruse.privat TemplaVoila 1 01.07.08 18:41
News Beiäge mehrsprachig stefankruse.privat News (tt_news, mininews und Co) 0 26.06.08 08:52
mehrsprachig enemy TYPO3 4.x Fragen und Probleme 1 03.12.07 21:51
tt_news mehrsprachig? webmastersworld News (tt_news, mininews und Co) 3 28.11.07 12:43
News Mehrsprachig garciam News (tt_news, mininews und Co) 5 16.11.05 15:38


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:30 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS