Hallo Leute...
ich hoffe ihr könnt mir helfen:
Ich möchte in einer Spalte meiner Seite die ColPos 1-3 hintereinander darstellen. Ich denke das ungefährt so:
content
<hr>
content
<hr>
content
hinzu kommt das auf einigen Seiten auch gar nichts oder nur ein "content" angezeigt werden soll. Somit sind die Linien die die Inhalte trennen auch nicht immer nötig und müssen ausgeblendet werden wenn der Inhalt darüber nicht vorhanden ist.
RECHTS1 = COA
RECHTS1 {
10 = COA
10.10 = CONTENT
10.10 select.orderBy = sorting
10.10 select.where = colPos = 1
10.10 table = tt_content
10.20 wrap = | <hr color="#9B9B9B" noshade="" width="185" size="1" />
10.20 stdWrap.if {
value = 0
equals.numRows {
table = tt_content
select.where = (NOT hidden) AND (NOT deleted) AND (colPos=1)
}
negate = 1
}
20.10 = CONTENT
20.10.select.orderBy = sorting
20.10.select.where = colPos = 2
20.10.table = tt_content
20.20.wrap = | <hr color="#9B9B9B" noshade="" width="185" size="1" />
20.20.stdWrap.if {
value = 0
equals.numRows {
table = tt_content
select.where = (NOT hidden) AND (NOT deleted) AND (colPos=2)
}
negate = 1
}
30.10 = CONTENT
30.10.select.orderBy = sorting
30.10.select.where = colPos = 3
30.10.table = tt_content
}
20.stdWrap.if {
# if-Abfrage für ungleich Null
value = 0
equals.numRows {
table = tt_content
select.where = (NOT hidden) AND (NOT deleted) AND (colPos=3)
}
negate = 1
}
}
}
An Stelle von <hr /> könne man besimmt auch den Gifbiulder nutzen, aber ich würde jetzt erstmal gern rausbekommen was ich falsch mache.
mfg
Giraffe