[TYPO3] RealUrl alternative language problem
martin at localears.com
martin at localears.com
Sun Jan 20 12:34:41 CET 2008
RealUrl alternative language problem
I am trying to implement RealUrl. (Single tree, Single domain, Multi
language site (SE=default, EN=alternative language))
The Url looks great as long as I am working in the default language
but NOT in the alternative language (the url is still in the default
language despite the fact that the website in total is presented in
the alternative language). I want the URL to take the alternative
language version of the Speaking URL path segment when alternative
language has been selected but cannot get it to do so (still takes the
default language version). (The extension to accomplish this
(adaltas_realurl_i18n) has been implemented.).
Please see the technical info below. I am very grateful for any help
as this has taken me much longer than expected. Thanks in advance!
Extract from Template
config{
linkVars = L
uniqueLinkVars = 1
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
#sys_language_overlay = 1
#language = se
#locale_all = se_SE
}
[globalVar = GP:L=1]
config{
sys_language_uid = 2 #This is not a mistake, ?english? is uid=2 in
the database table
language = en
locale_all = english
}
[global]
# --------------
# RealUrl settings
# --------------
config {
simulateStaticDocuments = 0
#baseURL = 1
baseURL = http://www.?mywebsite?.com
prefixLocalAnchors = all
tx_realurl_enable = 1
}
TSconfig
mod.SHARED{
defaultLanguageFlag = se.gif
defaultLanguageLabel = Swedish
}
mod.web_layout.defLangBinding = 1
RealURL Conf
<?php
// Manuall settings for realUrl - 080104
// [TYPO3_SITE_URL] [preVars] [pagePath] [fixedPostVars] [postVarSets]
[fileName]
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .=
'tx_realurl_pathsegment,subtitle,nav_title,title,alias';
$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,title';
// realurl config
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
/*'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
//'postVarSet_failureMode'=>'redirect_goodUpperDir',
),*/
'redirects_regex' => array (
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'uk' => '1',
'se' => '0',
),
//'noMatch' => 'bypass',
'valueDefault' => 'se',
),
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => '1',
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
//'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 30,
'rootpage_id' => 1,
'disablePathCache' => '1',
'segTitleFieldList' =>
'tx_realurl_pathsegment,title,subtitle,,alias,nav_title',
),
'postVarSets' => array(
),
'fileName' => array(
),
);
?>
/Martin
More information about the TYPO3-english
mailing list