[TYPO3-english] realURL Language problem
Klaus Fumy
klaus.fumy at uni-ulm.de
Mon Oct 20 08:35:49 CEST 2008
Hi,
we are running typo3 4.2.1 and realURL 1.5.2. Everything is fine exept
one strange behaviour: When I use the page property field: Speaking URL
pathsegment, in my default Language (German) everything is fine, but
when I change to language 1 (English) realURL uses the pagetitle to
generate the path instead of the Speaking URL Pathsegment.
What might be the reason? (In elder versions of typo3/realURL,
everything was ok, but I can´t say exactly when that behaviour appeared,
because we discovered this behaviour not at once)
My configuration file ...
<?php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl']
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl']
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl']
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';
$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['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_pathcache']
= 'tx_realurl_pathcache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['FE']['addRootLineFields'].=
',tx_realurl_pathsegment,alias,nav_title,title';
// Updated by TYPO3 Extension Manager 23-04-08 16:38:19
$tx_realurl_config = array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'respectSimulateStaticURLs' => 0,
'emptyUrlReturnValue' => '/',
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
// de rausgestrichen aus Skriptzeile
'de' => '0',
// 'de' => '0',
'en' => '1',
),
// 'valueDefault' => ' ',
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'disablePathCache' => 0,
'autoUpdatePathCache' => 1,
'expireDays' => 7,
'firstHitPathCache' => 1,
'segTitleFieldList' =>
'tx_realurl_pathsegment,alias,nav_title,title',
),
'fileName' => array (
// hier wird mit 1 oder 0 der suffix html an- bzw.
ausgeschaltet
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'page.html' => array(
'keyValues' => array(
'type' => 1,
),
),
'print.pdf' => array(
'keyValues' => array(
'type' => 123,
),
),
),
),
'redirects' => array (
),
'fixedPostVarSets' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
'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' => '-',
),
),
),
),
'article' => array(
array (
'GETvar' => 'tx_ttnews[backPid]',
// 'valueMap => array(
// ),
),
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 12,
'addWhereClause'=> 'AND
NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' =>
array(
'strtolower' => 1,
'spaceCharacter'
=> '-',
),
),
),
),
'cal'=> array(
array(
'GETvar' => 'tx_cal_controller[view]'
),
array(
'GETvar' =>
'tx_cal_controller[getdate]'
),
array(
'GETvar' =>
'tx_cal_controller[lastview]'
),
array(
'GETvar' => 'tx_cal_controller[type]'
),
array(
'GETvar' =>
'tx_cal_controller[category]',
'lookUpTable' => array(
'table' => 'tx_cal_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => 'AND
NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' =>
array(
'strtolower' => 1,
'spaceCharacter'
=> '_',
),
),
),
array(
'GETvar' => 'tx_cal_controller[uid]',
'lookUpTable' => array(
'table' => 'tx_cal_event',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => 'AND
NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' =>
array(
'strtolower' => 1,
'spaceCharacter'
=> '_',
),
),
),
),
),
),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'cms.rz.uni-ulm.de' => $tx_realurl_config,
'erasmus-cms.rz.uni-ulm.de' => $tx_realurl_config,
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['cms.rz.uni-ulm.de']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['erasmus-cms.rz.uni-ulm.de']['pagePath']['rootpage_id']
= 13625;
unset($tx_realurl_config);
?>
Thanks for help.
klaus
More information about the TYPO3-english
mailing list