Configuration Realurl pour Calendar Base (et tt_news)
J'ai eu un peu de peine à trouver sur le net une configuration de Realurl pour l'extension Calendar Base (ou cal). Je l'ai donc refaite.
La voici pour vous (et pour le même prix, vous avez droit à tt_news) :
[php]
<?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(),
),
),
),
),
);
?>
[/php]
Les versions utilisées :
- Typo3 4.5
- cal 1.3.3
- tt_news 3.0.1