[TYPO3-german] toppic pro Sprache unterschiedlich

Anja Funk anja.funk at afimage.de
Mon Jun 12 13:14:22 CEST 2017


Hallo,

ich möchte im Header pro Sprache ein anderes Bild anzeigen. Leider kenne ich mich mit der Handhabung der Konstanten und Conditions bisher noch fast gar nicht aus.

So sieht mein Code jetzt aus:

toppic = fileadmin/user_upload/neuheiten-header-1600x400.jpg
bodyclass = neuheiten

bodytype = category

Zur Abfrage der Sprache wollte ich die globale Abfrage [globalVar = GP:L=0] nutzen. Doch diese wird mir direkt rot markiert.

Angedacht hatte ich folgende Lösung (funktioniert allerdings überhaupt nicht):
10 = IMAGE
10.temp.toppic = IMAGE
# 1. Deutsch
[globalVar = GP:L=0]
temp.toppic 
{file = fileadmin/sitepics/mcu_home_0704.gif
altText = Ein Haus
}
[global]

# 2. Englisch
[globalVar = GP:L=1]
temp.toppic 
{
file = fileadmin/images/house.jpg
altText = A house
}
[global]

toppic < temp.toppic

LG
Anja


More information about the TYPO3-german mailing list