[TYPO3-dev] how to implement "no records found" with TS

Franz Holzinger franz at fholzinger.com
Mon Jul 10 20:51:45 CEST 2006


Hello Martin,


> I tried to display a message if a CONTENT object didn't render any 
> records.  I didn't want to use a further SELECT (eg via stdWrap.numRows) 
> for performance reasons. I fiddled with cobj:parentRecordNumber with no 
> success.
> 
> Then I was able to use this in my TS:
> 
> subparts.colNormal < styles.content.get
> subparts.colNormal.stdWrap.append = TEXT
> subparts.colNormal.stdWrap.append.if.isFalse.data = cobj:currentRecordTotal

IMHO currentRecordTotal should always be 0 or 1. This is because one 
record can be only one or not existing.

However it sounds useful to have something like lastRecordsTotal or 
currentRecordsTotal.

Greets,

Franz




More information about the TYPO3-dev mailing list