[TYPO3] img depend on language
JoH
info at cybercraft.de
Tue Jun 27 14:35:08 CEST 2006
> The site I use Typo3 for has about 15 different languages.
> Each language should display a different logo.
>
> I would do the following (i'm using TV):
>
> lib.logo_country = IMAGE
> lib.logo_country{
> file = fileadmin/template/images/logos/logo_{here comes the language
> code}.jpg
> }
>
> How can I substitute the "{here comes the language code}" so it
> becomes (for example: fileadmin/template/images/logos/logo_15.jpg
Assuming you are using the L parameter to switch between languages, this
could be an option:
lib.logo_country = IMAGE
lib.logo_country{
file {
import = fileadmin/template/images/logos/
import.dataWrap = |logo_{GPvar:L}.jpg
}
}
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