Bug #26859
paginator: setLimit() doesn't work for the first page.
| Status: | Resolved | Start date: | 2011-05-17 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - | |||
| TYPO3 Version: | Has patch: | |||
| PHP Version: | Complexity: | |||
| Votes: | 0 |
Description
Hi,
The paginator in list-view doesn't work correctly. The first page lists all the news, in stead of a limited number of news.
That is to say, the $query->setLimit() was not called for the first page. My patch should help to fix the bug.
With regards,
SZ
Associated revisions
[BUGFIX] paginator: setLimit() at 1st page
The paginator doesn't work correctly at the
1st page.
Change-Id: Id7441c3f6d6944de08818997cff35406b20264c1
Resolves: #26859
History
Updated by Georg Ringer almost 2 years ago
- Status changed from New to Needs Feedback
I can'T really reproduce your problem.
I have 10 news per page and still set a limit of 3 in the flexforms. I will still only get 3 news.
do you also use an offeset?
thanks for your help and sorry for late response
Updated by Sinian Zhang almost 2 years ago
Hi,
You could set the TS as following, and see whether the paginator in FE works correctly or not.
---
plugin.tx_news2.settings.list.paginate.itemsPerPage = 3
---
The paginator works correctly except its first page, the first page shows still all the news insteaf of a limited number(in your case 3) .
With regards,
SZ
Updated by Georg Ringer almost 2 years ago
can you tell which settings do you have in the plugin's settings (flexforms) for limit and offset and which in TS.
Updated by Sinian Zhang almost 2 years ago
- File screenshot01.png added
Hi,
I have no other settings for limit or offset in flexform. (screenshot01.png)
I have only the following TS in order to test paginator.
---
plugin.tx_news2.settings.list.paginate.itemsPerPage = 3
---
with regards,
SZ
Updated by Mr. Hudson almost 2 years ago
Patch set 1 of change Id7441c3f6d6944de08818997cff35406b20264c1 has been pushed to the review server.
It is available at http://review.typo3.org/2515
Updated by Georg Ringer almost 2 years ago
- Status changed from Needs Feedback to Resolved
- % Done changed from 0 to 100
Applied in changeset bbd45fc82bff72c32b740a84cb82f84599cb8fc2.