[TYPO3-german] Standard Bild-Element wird nicht ausgegeben, wenn HTML-Ausgabe für andere Layouts umgeschrieben wird

JCL - Johannes C. Laxander jc at laxander.com
Wed Oct 15 18:49:31 CEST 2014


Hallo,

ich möchte aufgrund der Layout-Auswahl im Inhaltselement die HTML-Ausgabe ändern. Dafür habe ich dieses Typoscript (TYPO3 6.2.5):

# CASE Object um 'image'
# Inhaltselement 'image' kopieren (sichern)
temp.tt_content < tt_content.image
# 'image'-Element löschen
tt_content.image >
# neu aufbauen als CASE-Objekt
tt_content.image = CASE
tt_content.image {
  # Layouts auswählen
  # default = Standard 'image'-Objekt
  # 1 - Bild-Text-Banner
  key.field = layout
  # Gesicherte Standard-Konfiguration zurück kopieren
  default < temp.tt_content
  # Bild-Text-Banner
  1 < temp.tt_content
  # Image Teaser
  2 < temp.tt_content
}

Die neu definierten Objekte sind "eigene Inhaltselemente" und werden wie gewünscht ausgegeben. Bei einem Standard Image Inhaltselement wird aber dieser Fehler ausgegeben:

#1: PHP Warning: array_replace_recursive() [<a href='function.array-replace-recursive'>function.array-replace-recursive</a>]: Argument #1 is not an array in ...

Wo liegt mein Fehler? Ich vermute es liegt an "default < temp.tt_content" !? Aber wie geht’s richtig?

Gruß, Johannes.





More information about the TYPO3-german mailing list