[TYPO3] img depend on language

JoH info at cybercraft.de
Tue Jun 27 15:57:13 CEST 2006


>> 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

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list