Liebe Leute,
ich habe mehrere Stunden gegoogelt und Foren durchsucht. Leider finde ich keine Lösung für mein Problem. Und zwar werden die Links zu ttnews-Einträgen nicht in der von RealUrl praktizierten Form geändert. Statt zum Beispiel www.meine.domain/nachricht/detai/super_nachricht.html werden die Variablen an die URL angehängt:
www.meine.domain/Nachricht.2542.0.html?&no_cache=1&tx_ttnews[tt_news]=124&tx_ttnews[calendarYear]=2009&tx_ttnews[calendarMonth]=1
Bei einem Klick auf solch einen Link wird die entsprechende Seite richtig angezeigt. Alle anderen Links werden korrekt nach dem Muster www.meine.domain/ueber-uns/unterseite.html erzeugt.
Meine derzeitige Realurl-Konfiguration lautet wie folgt:
<?php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment,subtitle,nav_title,title';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1,
'respectSimulateStaticURLs' => 1,
'appendMissingSlash' => 'ifNotFile',
// 'postVarSet_failureMode' => 'redirect_goodUpperDir',
),
'rewrite' => array(
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
'valueDefault' => 'de',
),
'GETvar' => 'type',
'valueMap' => array(
'print' => '98',
'pdf' => '123',
'rss' => '100',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array (
'type' => 'user',
'userFunc' => 'EXT:aoe_realurlpath/class.tx_aoerealurlpath_pagepath.php:&tx_aoerealurlpath_pagepath->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '1',
'segTitleFieldList'=>'alias,tx_aoerealurlpath_overridesegment,nav_title,title,subtitle',
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'index.html' => array(
'keyValues' => array (
'type' => 0,
),
),
'index.100.html' => array(
'keyValues' => array (
'type' => 100,
),
),
'index.101.html' => array(
'keyValues' => array (
'type' => 101,
),
),
'index.102.html' => array(
'keyValues' => array (
'type' => 102,
),
),
'index.103.html' => array(
'keyValues' => array (
'type' => 103,
),
),
'print.html' => array(
'keyValues' => array (
'type' => 98,
),
),
'pdf.html' => array(
'keyValues' => array (
'type' => 123,
),
),
'rss.xml' => array(
'keyValues' => array (
'type' => 100,
),
),
),
),
'fixedPostVarSets' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
//archive
'period' => array (
array (
'condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[pL]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[arc]',
'valueMap' => array(
'non-archived' => -1,
),
),
),
'browse' => array (
array (
'GETvar' => 'tx_ttnews[pointer]',
),
),
'select' => array (
array (
'GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array (
'table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'category' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'date' => array(
array('GETvar' => 'tx_ttnews[day]' , ),
array('GETvar' => 'tx_ttnews[month]' , ),
array (
'GETvar' => 'tx_ttnews[year]',
'valueMap' => array(
'2007' => '2007',
),
'noMatch' => 'bypass',
),
array (
'GETvar' => 'tx_ttnews[month]',
'valueMap' => array(
'Januar' => '1',
'Februar' => '2',
'Maerz' => '3',
'April' => '4',
'Mai' => '5',
'Juni' => '6',
'Juli' => '7',
'August' => '8',
'September' => '9',
'Oktober' => '10',
'November' => '11',
'Dezember' => '12',
),
'noMatch' => 'bypass',
),
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
// 'maxLength' => 50,
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
);
?>
In meinem Template steht:
#Realurl
page.config.simulateStaticDocuments = 0
page.config.baseURL = http://www.meine.domain/
page.config.tx_realurl_enable = 1
page.config.prefixLocalAnchors = all
page.config.uniqueLinkVars = 1
page.config.linkVars = L
page.config.htmlTag_langKey = de
#Realurl TTNEWS
plugin.tt_news.useHRDatesSingle = 1
plugin.tt_news.useHRDatesSingleWithoutDay = 0
plugin.tt_news.dontUseBackPid = 1
plugin.tt_news.useHRDates = 1
Allerdings tritt das Problem auch bei der Standard-Konfiguration für RealUrl, die mit TT-News "mitgeliefert" wird, auf. Alle anderen Urls werden im übrigen korrekt verändert. Nur eben TT-News (Version 2.5.2) zickt herum. Kann mir da jemand helfen?