[TYPO3] How to change a source file based on language (L) value?

media.res | Alex Widschwendter a.widschwendter at mediares.at
Tue Feb 5 16:28:46 CET 2008


hi,

> I tried to insert these lines inside the condition block for each L
> value, but it doesn't change the value of {$header.file}, and my
> template remains the same. Could somebody tell me what's the best way to
> do this?

you can not set constants within you setup field.

you can use conditions in your constants field:

[globalVar = GP:L=1]
header.file = fileadmin/templates/test.html
[globalVar = GP:L=2]
header.file = fileadmin/templates/test2.html
[global]

hth alex



More information about the TYPO3-english mailing list