/ Published in: PHP

tt_news: RealURL, multilanguage
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
'enableCHashCache' => 1 // disable enableUrlDecodeCache for multiple domains // as no root pid is caught and the system check to // see if correct page path is grabbed , 'enableUrlDecodeCache' => 0 , 'enableUrlEncodeCache' => 0 , 'appendMissingSlash' => 'ifNotFile' , 'respectSimulateStaticURLs' => 0 , 'postVarSet_failureMode' => 'redirect_goodUpperDir' ), // Langue 'GETvar' => 'L', 'it' => '2', 'de' => '0', 'fr' => '1', ), 'valueDefault' => 'de', ), // No cache 'GETvar' => 'no_cache', 'no_cache' => 1, ), 'noMatch' => 'bypass', ), ), 'type' => 'user' , 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main' , 'spaceCharacter' => '-' , 'languageGetVar' => 'L' , 'rootpage_id' => 1 , 'disablePathCache' => 0 , 'expireDays' => 7 , 'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,title' , 'excludePageIds' => null ), // news archive parameters 'GETvar' => 'tx_ttnews[year]', ), 'GETvar' => 'tx_ttnews[month]', 'january' => '01', 'february' => '02', 'march' => '03', 'april' => '04', 'may' => '05', 'june' => '06', 'july' => '07', 'august' => '08', 'september' => '09', 'october' => '10', 'november' => '11', 'december' => '12', ) ), ), // news pagebrowser 'GETvar' => 'tx_ttnews[pointer]', ), ), // news categories 'GETvar' => 'tx_ttnews[cat]', ), ), // news articles and searchwords 'GETvar' => 'tx_ttnews[tt_news]', 'table' => 'tt_news', 'id_field' => 'uid', 'alias_field' => 'title', 'addWhereClause' => ' AND NOT deleted', 'languageGetVar' => 'L', 'languageExceptionUids' => '', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'useUniqueCache' => 1, 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), 'GETvar' => 'tx_ttnews[swords]', ), ), ), ), // END postVarSets // configure filenames for different pagetypes // Put ".html" at the end of the URL 'defaultToHTMLsuffixOnPrev' => 0, 'type' => 100, ), ), 'type' => 101, ), ), 'type' => 102, ), ), 'type' => 103, ), ), ), ), ); // Pour un fonctionnement correct du postVarSets, faire une copie du tableau d'origine, pour le domaine en question $TYPO3_CONF_VARS['EXTCONF']['realurl']['xxx.ch'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
Comments
