moin, nochmal ich
so nach der Devise, viele Wege führen nach Typo3, google ich mich seit zwei Tagen zu Tode

. Auf nachfolgende Zielsetzung finde ich keinen Anhaltspunkt, der mir helfen könnte:
Je nach Contenttyp (CType: text, textpic, image) und je nach Contenposition (colPos: 0=normal, 1=links, 2=rechts) möchte ich voneinander abhängige Klasse wrappen können.
Folgendes Beispiel soll als Ergebnis erscheinen:
1. Beispiel - Contentyp: text, Contentposition: links =
HTML-Code:
<div class="links"><div class="text"> | </div></div>
2. Beispiel - Contentyp: image, Contentposition: links =
HTML-Code:
<div class="image"> | </div>
Der nachfolgende Beispielcode produziert mir jedoch beim Contentyp: image (bei dem die Positionierung in meinem Layout überhaupt keine Rolle spielt) das folgende, was ich nicht gebrauchen kann =
HTML-Code:
<div class="links"><div class="image"> | </div></div>
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53:
| temp.contentWrap < tt_content.stdWrap temp.contentWrap { prepend = CASE prepend { key.field = colPos default = TEXT default.value = <div class="normal"> 1 = TEXT 1.value = <div class="links"> 2 = TEXT 2.value = <div class="rechts"> } append = CASE append { key.field = colPos default = TEXT default.value = </div> 1 = TEXT 1.value = </div> 2 = TEXT 2.value = </div> } } r.10 = TEMPLATE r.10 { template = FILE template.file = fileadmin/xyz.html workOnSubpart = BODY marks.CONTENT = COA marks.CONTENT { 10 = CONTENT 10 { wrap = | table = tt_content select.where = colPos < 3 select.orderBy = sorting select.languageField = sys_language_uid renderObj < tt_content renderObj { text.wrap = <div class="texte">|</div> textpic.wrap = <div class="textebilder">|</div> image.wrap = <div class="bilder">|</div> stdWrap > stdWrap < temp.contentWrap stdWrap.required = 0 image.20.renderMethod = div } } } } |
Wie kann ich je nach Typ
UND Position des Contents wrappen?
Gruss Mensch
PS: So wäre es mir möglich, alle Inhalte quer Beet, also links, normal oder rechts entsprechend der Reihenfolge (sorting) positionieren zu lassen, so das beispielsweise solche ein Ergebnis - gesteuert durch das CSS - auf der Seite erscheint:
1. Reihe: breiter Content (normal)
2. Reihe: linker Content + rechter Content
3. Reihe: bild1 + bild2 + bild3 + bild4 +
4. Reihe: bild5 + ...
5. Reihe: breiter Content (normal)