Created
February 15, 2011 10:53
-
-
Save alienlebarge/827395 to your computer and use it in GitHub Desktop.
Typo3 Realurl Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* RealURL configuration | |
* | |
* @author Cédric Aellen | |
* @version 1.0 | |
*/ | |
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array( | |
// Default host | |
'_DEFAULT' => array( | |
// General configuration | |
'init' => array( | |
'doNotRawUrlEncodeParameterNames' => 0, | |
'enableCHashCache' => 1, | |
'respectSimulateStaticURLs' => 1, | |
'adminJumpToBackend' => 0, | |
'enableUrlDecodeCache' => 1, | |
'enableUrlEncodeCache' => 0, | |
'appendMissingSlash' => 'ifNotFile' | |
), | |
// Redirections | |
'redirects' => array(), | |
// Pre variables | |
'preVars' => array( | |
// Language | |
array( | |
'GETvar' => 'L', | |
'valueDefault' => 'fr', | |
'valueMap' => array( | |
'fr' => '0', | |
'de' => '2', | |
'en' => '3' | |
) | |
), | |
// No cache | |
array( | |
'noMatch' => 'bypass', | |
'GETvar' => 'no_cache', | |
'valueMap' => array( | |
'no_cache' => 1, | |
) | |
), | |
), | |
// Transformation method | |
'pagePath' => array( | |
'type' => 'user', | |
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main', | |
'spaceCharacter' => '-', | |
'languageGetVar' => 'L', | |
'expireDays' => 3, | |
'rootpage_id' => 1, | |
), | |
// Fixed post variables | |
'fixedPostVars' => array(), | |
// Post variables | |
'postVarSets' => array | |
( | |
'_DEFAULT' => array | |
( | |
/*********************************************************** | |
* tt_news | |
**********************************************************/ | |
'archive' => array | |
( | |
array | |
( | |
'GETvar' => 'tx_ttnews[year]' | |
), | |
array | |
( | |
'GETvar' => 'tx_ttnews[month]', | |
'valueMap' => array | |
( | |
'january' => '01', | |
'february' => '02', | |
'march' => '03', | |
'april' => '04', | |
'may' => '05', | |
'june' => '06', | |
'july' => '07', | |
'august' => '08', | |
'september' => '09', | |
'october' => '10', | |
'november' => '11', | |
'december' => '12' | |
) | |
) | |
), | |
'browse' => array | |
( | |
array | |
( | |
'GETvar' => 'tx_ttnews[pointer]' | |
) | |
), | |
'select_category' => array | |
( | |
array | |
( | |
'GETvar' => 'tx_ttnews[cat]' | |
) | |
), | |
'article' => array | |
( | |
array | |
( | |
'GETvar' => 'tx_ttnews[tt_news]', | |
'lookUpTable' => array | |
( | |
'table' => 'tt_news', | |
'id_field' => 'uid', | |
'alias_field' => 'title', | |
'addWhereClause' => ' AND NOT deleted', | |
'useUniqueCache' => 1, | |
'useUniqueCache_conf' => array | |
( | |
'strtolower' => 1, | |
'spaceCharacter' => '-' | |
) | |
) | |
), | |
array( | |
'GETvar' => 'tx_ttnews[swords]' | |
) | |
), // tt_news [end] | |
/*********************************************************** | |
* cal | |
**********************************************************/ | |
'cal' => array( | |
array( | |
'GETvar' => 'tx_cal_controller[view]' | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[type]' | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[uid]', | |
'lookUpTable' => array( | |
'table' => 'tx_cal_event', | |
'id_field' => 'uid', | |
'alias_field' => 'title', | |
'addWhereClause' => ' AND deleted !=1', | |
'useUniqueCache' => 1, | |
'useUniqueCache_conf' => array( | |
'strtolower' => 1, | |
'spaceCharacter' => '-', | |
), | |
), | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[lastview]' | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[year]' | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[month]' | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[day]' | |
), | |
array( | |
'GETvar' => 'tx_cal_controller[category]', | |
'lookUpTable' => array( | |
'table' => 'tx_cal_category', | |
'id_field' => 'uid', | |
'alias_field' => 'title', | |
'addWhereClause' => ' AND deleted !=1', | |
'useUniqueCache' => 1, | |
'useUniqueCache_conf' => array( | |
'strtolower' => 1, | |
'spaceCharacter' => '-', | |
), | |
), | |
), | |
) // cal [end] | |
// defin here more extension | |
) | |
), | |
// File names | |
'fileName' => array( | |
'index' => array( | |
'_DEFAULT' => array( | |
'keyValues' => array(), | |
), | |
'index.html' => array( | |
'keyValues' => array(), | |
), | |
), | |
), | |
), | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment