[TYPO3-UG Dutch] real url settings
Fred Manders
fredmanders at gmail.com
Tue Jan 9 15:40:43 CET 2007
Om te beginnen zou ik dit stuk toevoegen aan jouw localconf.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';
$GLOBALS['TSFE']->anchorPrefix;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(
'duits/' => 'http://www.mediaanabs.de/',
'email-page/' => '',
'email-page.html' => '',
'zoekresultaten/' => '',
//'zoekresultaten.html' => '',
'nieuws/nieuwsbericht/' => 'nieuws/',
'nieuws/nieuwsbericht.html' => 'nieuws/',
'nieuws/nieuwsbericht/artikel/' => 'nieuws/',
'nieuws/nieuwsbericht/artikel.html' => 'nieuws/',
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'' => 1,
),
'noMatch' => 'bypass',
),
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => '1',
'index' => array(
'print.html' => array(
'keyValues' => array(
'type' => 98,
)
),
'pdf.html' => array(
'keyValues' => array(
'type' => 1234,
)
),
),
),
'postVarSets' => array(
'_DEFAULT' => array (
'artikel' => 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]',
),
),
'categorie' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'neste' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3
),
);
Wat geel gemarkeerd is gaat over mijn site persoonlijk (over redirects en
over type print en type pdf). De laatste vier lappen voor PagePath gaan over
tt_news. Dan heb ik verder nog dit toegevoegd aan mijn main template:
plugin.tt_news.useHRDates = 1
config.simulateStaticDocuments = 0
config.baseURL = http://www.mediaanabs.nl/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
Hopelijk helpt dit jou op weg.
More information about the TYPO3-UG-dutch
mailing list