Zum Inhalt springen

wrap um Spalte normal nur wenn rechte Spalte Inhalt hat

Erstellt am 26. Januar 2011 · 2 Antworten · letzte Antwort am 27. Januar 2011

Tags: Frage

omega-pi ·

Hallo zusammen,

zum verzweifeln grade... Ich möchte die Spalte normal wrappen, aber nur, wenn die Spalte rechts nen Inhalt hat. Und ja, es gibt in der Suche inzwischen gefühlte 100 Lösungen dazu, und nix will klappen. Probiert habe ich u.a.:

temp.mainTemplate.subparts.text < styles.content.get
temp.mainTemplate.subparts.text.stdWrap.wrap = <div id="content_left">|</div>
temp.mainTemplate.subparts.text.stdWrap.wrap.if.isTrue.numRows {
  pidInList = this
  table = tt_content
  select.where = colPos=2
}
temp.mainTemplate.subparts.text < styles.content.get
temp.mainTemplate.subparts.text.stdWrap.wrap = <div id="content_left">|</div>
temp.mainTemplate.subparts.text.if.isTrue.numRows < styles.content.getRight
temp.mainTemplate.subparts.text < styles.content.get
temp.mainTemplate.subparts.text.stdWrap.wrap = <div id="content_left">|</div>
temp.mainTemplate.subparts.text.stdWrap.wrap.if.isTrue.numRows < styles.content.getRight
temp.mainTemplate.subparts.text < styles.content.get
temp.mainTemplate.subparts.text.stdWrap.wrap = <div id="content_left">|</div>
temp.mainTemplate.subparts.text.stdWrap.override = |
temp.mainTemplate.subparts.text.stdWrap.override.if.isTrue.numRows < styles.content.getRight

Ich hoffe sehr, dass mich jemand aufn Trichter bringt was ich eigentlich falsch mache...

Danke :-)

Unbekannter Benutzer ·

Mmm, da gibt es wohl einen Fehler hier im Forum mit numRows, daher mal eben als normaler Text, aber ich würds so probieren:

temp.mainTemplate.subparts.text.stdWrap.override =
temp.mainTemplate.subparts.text.stdWrap.if.isTrue.numRows < styles.content.getRight