[TYPO3-dev] condition on language
JoH asenau
info at cybercraft.de
Wed Aug 11 16:28:49 CEST 2010
> I have some typoscript in an extension which should only be included
> when a specific language is activated.
>
> I know that I could use GP:L, but the same value on two systems would
> not necessarily correspond to the same language.
>
> So I thought that I could do something like:
> [globalVar = TSFE:lang = dk]
> But lang doesn't seem to be available as condition?
blah = CASE
blah {
key.cObject = TEXT
key.cObject {
lang {
de = doit
en = doit
}
}
default = TEXT
default.value =
doit = TEXT
doit.value = Done!
}
something like this? - Could even be used together with if.isTrue
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-dev
mailing list