[TYPO3] img depend on language
Jochen Rieger
j.rieger at connecta.ag
Tue Jun 27 15:54:13 CEST 2006
Hi David,
> however, I've noticed one problem. When people enter the site, they get
> to see the international part, so no "L" is defined, which of course
> lead to not showing the image.
> Is there a way to find out if the L var is set, and if not, to display
> another image?
why not using constants? Take Joey's approach:
lib.logo_country = IMAGE
lib.logo_country{
file {
import = fileadmin/template/images/logos/
import.dataWrap = |logo_{$myConstant}.jpg
}
}
And in the constants-field you set the constant within your language
configuration. For example:
myConstant = GeneralValue
[globalVar = GP:L = 1]
myConstant = L1_Value
[globalVar = GP:L = 2]
myConstant = L2_Value
[global]
Regards,
Jochen
More information about the TYPO3-english
mailing list