[TYPO3-mvc] RFC: #11007 PaginateController uses wrong offset

Georg Ringer mail at ringerge.org
Mon Nov 22 13:34:25 CET 2010


Hi list,

This is an SVN patch request.

Type: bugfix

Bugtracker reference:
http://forge.typo3.org/issues/11007

Branches:
trunk, 1.3 (?)

Problem:
The PaginateController doesn't work with an offset set in the original
query.

Example:
7 news records should be displayed with an offset of 2 (explanation
could be that the 1st 2 records are rendered with a different plugin).
itemsPerPage = 3

1st page should show:
item 4
item 5
item 6
2nd page should show
item 7
-------------------------

currently output is:
1st page:
item 4
item 5
item 6
2nd page:
item 4
item 5
item 6
3rd page:
item 7

the possible offset of the query is not checked.


Solution:
calculate with the current offset

Additional information:
I don't know if a similiar problem exists with the LIMIT

Regards,
Georg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fluid-paginate-offset.patch
URL: <http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/attachments/20101122/202ca3ff/attachment.txt>


More information about the TYPO3-project-typo3v4mvc mailing list