Zum Inhalt springen

Nach upgrade keine Bilder

Erstellt am 11. Oktober 2011 · Noch keine Antworten

Tags: Bilder, Update & Upgrade, Frage

alsahmut ·

Hallo, nach upgrade von 4.2 auf die aktuelle 4.5.6 werden nun keine Bilder mehr angezeigt.

CSS Styled Content (css_styled_content) ist eingebunden
Ich verwende außerdem die Extension automaketemplate

Zur Ausgabe des Contents verwende ich folgenden Templatecode:

# Configuring the Auto-Parser for main template:

plugin.tx_automaketemplate_pi1 {

    # Read the template file:

  content = FILE

  content.file = fileadmin/template_4.html

    # Here we define which elements in the HTML that

    # should be wrapped in subpart-comments:

  elements {

    BODY.all = 1

    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1

    HEAD.all.subpartMarker = DOCUMENT_HEADER

    HEAD.rmTagSections = title

    DIV.all = 1
    
    TD.all = 1
    
    TABLE.all = 1
    
    IMG.all = 1

  }

    # Prefix all relative paths with this value:

  relPathPrefix = fileadmin/

}

# Main TEMPLATE cObject for the BODY

temp.mainTemplate = TEMPLATE

temp.mainTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:

  template =< plugin.tx_automaketemplate_pi1
  
  

    # Substitute the ###content### subpart with some example content:

	subparts.content< styles.content.get
  
}        


# Default PAGE object:

page = PAGE

page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:

page.10 < temp.mainTemplate

Es sei zu erwähnen das die Bilder durchaus im Backend sichtbar sind und sich einzeln im Frontend einbinden lassen.
Nur leider funktioniert die Ausgabe von Bildern mit styles.content.get nicht.

Bin für alle Hinweise sehr dankbar!

Mfg alsahh

[UPDATE]

Meine ursprüngliche Idee war für Bilder im tt_content internal_type = file_reference zu nutzen. Das ganze klappte auch im BE allerdings wurden keine Bilder im FE dargestellt.

Ich habe nun die Extension em_reference entdeckt welche das Problem löst.