[TYPO3-mvc] QueryResult object has issues with offsets and "count" method ?

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Nov 19 12:19:48 CET 2010


Hey,

> But usually that should not be the case. Why are you counting objects
> with a limit query?

I don't - FLUID does. Before I start rendering the objects in my 
template I check if there actually is a result like I wrote in my 
initial posting:

> <f:if condition="{f:count(subject:exhibitors)}">
>     <f:then># some output</f:then>
>     <f:else>No exhibitors found</f:else>
> </f:if>

That was no big deal before where a array was returned by the 
repository, but with the queryResult object it now is.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list