[TYPO3-english] real url configuration
Michael Cannon
mc at acqal.com
Sat Jan 24 04:04:03 CET 2009
I suggest using TypoScript by domain name to configure your language
variables and remove the preVars from your realurl.php configuration of the
languages.
The TypoScript setup code below works with both language variables and
domain names based upon their TLD. I had this setup for when a URL would
contain the language variable once, but after that the correct domain was
picked up and used.
config {
linkVars = L
uniqueLinkVars = L
sys_language_mode = content_fallback
sys_language_overlay = 1
sys_language_softMergeIfNotBlank = tt_content:image, tt_content:header
sys_language_uid = 0
locale_all = en_US
language = en
htmlTag_langKey = en-us
}
# French
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.locale_all = fr_FR
config.language = fr
config.htmlTag_langKey = fr
# Chinese (Simplified)
[globalVar = GP:L = 2] || [globalString = _SERVER|HTTP_HOST= *.cn]
config.sys_language_uid = 2
config.locale_all = zh_CN
config.language = cn
config.htmlTag_langKey = zh-cn
config.baseURL = http://www.acqal.cn/
# Chinese (Traditional)
[globalVar = GP:L = 3] || [globalString = _SERVER|HTTP_HOST= *.tw]
config.sys_language_uid = 3
config.locale_all = zh_TW
config.language = tw
config.htmlTag_langKey = zh-tw
config.baseURL = http://www.acqal.com.tw/
[end]
--
Michael Cannon
CEO, Acqal Corporation -- Official TYPO3 Agency for Support, Training and
Website Migration
+1 (866) 924-8645 +1 (404) 963-8850 x103 Fax +1 (866) 275-7385
www.acqal.com
More information about the TYPO3-english
mailing list