[TYPO3-english] RealURL language switch problem
Victor Livakovsky
v-tyok at mail.ru
Wed Nov 19 13:23:12 CET 2008
>> Also I have a multi-lahguage web-site, which still is running TYPO3
>> 4.2.1 (RealURL 1.5.2) and there is no such problem. But I'm working
>> now on another multi-lang web with TYPO3 4.2.3 (RealURL 1.5.2) and
>> there is such problem.
> I have no comment right now :(
Maybe it'll help:
Template Setup:
################################################
# RealURL
################################################
config.baseURL = http://www.mysite.name/
config.prefixLocalAnchors = all
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1
I'm using UrlTool (ext_key: aeurltool) for RealURL configuration and
here is my configuration:
<?php
/**
*
* aeUrlTool default realurl configuration
* based on realurl-configuration of news.typo3.org
* http://news.typo3.org/about/realurl-configuration/
*
*/
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'enableCHashCache' => '1',
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
),
'redirects' => array (
),
'preVars' => array (
'0' => array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => '1',
),
'noMatch' => 'bypass'
),
'1' => array (
'GETvar' => 'L',
'valueMap' => array (
'en' => '1',
'de' => '0',
),
'noMatch' => 'bypass'
),
'2' => array (
'GETvar' => 'type',
'valueMap' => array(
'print' => '98',
),
'noMatch' => 'bypass'
)
),
'pagePath' => array (
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => '3',
'rootpage_id' => '1',
'disablePathCache' => '0',
'segTitleFieldList' => 'alias,tx_realurl_pathsegment,subtitle,title',
'autoUpdatePathCache' => '1',
),
'fixedPostVars' => array (
),
'postVarSets' => array (
'_DEFAULT' => array (
'archive' => array (
'0' => array (
'GETvar' => 'tx_ttnews[year]',
),
'1' => 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 (
'0' => array (
'GETvar' => 'tx_ttnews[pointer]',
),
),
'select_category' => array (
'0' => array (
'GETvar' => 'tx_ttnews[cat]',
),
),
'article' => array (
'0' => 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' => '-',
),
),
),
'1' => array (
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
'fileName' => array (
//
// if you don't want .html-URLs set the following to "false" (e.g. 'defaultToHTMLsuffixOnPrev' => false,)
// then you get http://www.yourdomain.com/imprint/ instead of http://www.yourdomain.com/imprint.html
//
'defaultToHTMLsuffixOnPrev' => true,
'index' => array (
'rss.xml' => array (
'keyValues' => array (
'type' => '100',
),
),
'rss091.xml' => array (
'keyValues' => array (
'type' => '101',
),
),
'rdf.xml' => array (
'keyValues' => array (
'type' => '102',
),
),
'atom.xml' => array (
'keyValues' => array (
'type' => '103',
),
),
),
),
),
);
?>
If you'll need any additional information, Ill deliver it to you.
And one more thing I've already noticed: there is
'tx_realurl_pathsegment' field in 'pages_language_overlay' table in
DB, but, when I'm editing alternative page language record, I cann't
see "RealURL Path Segment" field in both TYPO3 4.2.1 and 4.2.3. When
editing default page record, it's presented there.
Maybe I have some wrong TYPO3 configuration?
More information about the TYPO3-english
mailing list