[TYPO3-mvc] $query->statement('MYQUERY') doesn't count for <f:paginate />

Jan Grubenbecher jg at hochsprung.net
Thu Mar 1 13:48:53 CET 2012


Hello Dominic,
I took a look at the pagination controller, an it will only work on
the constraints of the used Query object (add Limit and Offset).
I think customs statement will be ignored. Can You create Your
statement with the Query object? I think otherwise you have to write a
paganationController by Your own.
Kind regards

--
Jan Grubenbecher

hochsprung medienagentur

Im Mediapark 7
50670 Köln

Telefon: 02 21 / 67 78 79 05
Telefax: 02 21 / 67 78 79 06
Mobil:   01 72 / 9 90 08 95

Email: jg at hochsprung.net
Web:   http://www.hochsprung.net

Am 01.03.2012 07:14, schrieb Domi:
> Hello List,
> 
> I just using the <f:paginate /> over an queryResult but have 
> following error:
> 
> Because of the use of
> 
> $query->statement('MYQUERY WITH SOME WHERE CONDITIONS');
> 
> If I make a count over $result->count() it counts all elements 
> without my statement conditions. This results an incorrect 
> <f:paginate />, because the count is wrong.
> 
> How shall I deal with $query->statement(), that the count is right 
> for the view?
> 
> Thanks!
> 
> Dominic
> 



More information about the TYPO3-project-typo3v4mvc mailing list