[TYPO3] img depend on language

Vandemaele David david.vandemaele at telenet.be
Tue Jun 27 16:44:20 CEST 2006


JoH schreef:
>>> lib.logo_country = IMAGE
>>> lib.logo_country{
>>>     file  {
>>>         import =  fileadmin/template/images/logos/
>>>         import.dataWrap =  |logo_{GPvar:L}.jpg
>>>     }
>>> }
>> 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?
>>
>> I thought, I could do something with "override", but that doesn't
>> help.
> 
> lib.logo_country = IMAGE
> lib.logo_country{
>     file  {
>         import =  fileadmin/template/images/logos/default.jpg
>         import {
>             override.cObject = TEXT
>             override.cObject {
>                 if.isTrue.data = GPvar:L
>                 value = fileadmin/template/images/logos/
>                 dataWrap =  |logo_{GPvar:L}.jpg
>             }
>         }
>     }
> }
> 
> Should be working
> 
> Joey
> 
Hm, looks like there's something wrong with it.
It doesn't show up any image, not even the default one...

David



More information about the TYPO3-english mailing list