[TYPO3-german] "Text mit Bild" Content Element Styling per Typoscript

Pro okie prookie23 at googlemail.com
Tue Aug 12 18:02:14 CEST 2014


Hallo!

Ich baue zum allerersten Mal eine Webseite mit TYPO3, Version 6.2. Nun bin ich jetzt aber auf ein Problem getroffen, was mich seit 3 Stunden beschäftigt. Ich möchte in meiner Sidebar ein paar "Text mit Bild" Element ausgeben, und diese komplett selbst stylen per Typoscript, also eigenes Markup ausgeben. Title und Bodytext sind kein Problem, aber wie komme ich an das Bild/die Bilder des Content Elements? Insb. an ihre URLs, die benötige ich nämlich.

Mein Ausgabe Typoscript Code: (finde keine BBCode "Code-Box")

----------

lib.contentLinks = CONTENT
lib.contentLinks {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos = 3
  
  renderObj = COA
  renderObj {
    10 = TEXT
    10 {
      field = image
      //value < image.imgPath
      wrap = img src: |
    }
    
    20 = TEXT
    20 {
      field = header
      wrap = <h3>|</h3>
    }
    30 = TEXT
    30 {
      field = bodytext
      wrap = <p>|</p>
      # parse links (and etc.)
      parseFunc < lib.parseFunc
    }
  }
}

----------

Ich weiß nicht, was ich bei renderObj.10 machen soll. So wie es momentan in meinem Code steht, funktioniert es auf jeden Fall nicht...

Vielen Dank für eure Hilfe schoneinmal!


More information about the TYPO3-german mailing list