hmm... my TypoScript skills seem to have become a bit rusty.
lib.feld < styles.content.get
lib.feld.select.orderBy = rand()
lib.feld.select.select.where = colPos=11
lib.feld.wrap = <div class="wrapper">|</div>
I would like to add the wrapper div only if styles.content.get
returns more than one item for said colPos
.
I've tried the following two variants:
lib.feld.wrap.if {
isGreaterThan.numRows < styles.content.get
isGreaterThan.numRows.select.where = colPos=11
value = 1
}
and
lib.feld.wrap.if {
isGreaterThan.numRows.table = tt_content
isGreaterThan.numRows.select < styles.content.get.select
isGreaterThan.numRows.select.where = colPos=11
value = 1
}
also with an additional stdWrap
before numRows.
Everything returns false, even when there should be multiple results.
What is wrong?