[TYPO3] How to set &L from typoscript

Edwin van Nes edwin.van.nes at gmail.com
Tue Sep 5 12:05:36 CEST 2006


Hi,

I'm setting up multiple domains.
Each domain should have a default language but could still switch to another
language.

This typoscript works fine; except the default language is not set in the
linkVars = L
So the correct content is served but all typolinks generated don't have the
correct default.

--------------------

//  CONFIG
config.linkVars = L

//  ENGLISH DOMAIN (uid=0)
config.baseURL = http://www.mydomain.com
config.sys_language_uid = 0
config.language = en_EN
config.locale_all = en_EN
config.htmlTag_langKey = en_EN

// DUTCH DOMAIN (uid=3)
[globalString = IENV:HTTP_HOST=*mydomain.nl]
config.baseURL = http://www.mydomain.nl
config.sys_language_uid = 3
config.language = nl_NL
config.locale_all = nl_NL
config.htmlTag_langKey = nl_NL

// DUTCH LANGUAGE (uid=3)
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = nl_NL
config.locale_all = nl_NL
config.htmlTag_langKey = nl_NL

[global]

-------------------

So:

www.mydomain.com should serve english pages -> works fine
www.mydomain.nl should have typolinks including &L=0 or no L at all (the
last is the case and works)

www.mydomain.nl should serve dutch pages -> works fine
www.mydomain.nl should have typolinks including &L=3   -> that's to be
achieved

Any ideas please ?
Edwin



More information about the TYPO3-english mailing list