Feature #60454
closed
Omit paginator if there is only one page
Added by Sven Teuber over 10 years ago.
Updated almost 10 years ago.
Description
In TYPO3 6.2.4, the paginate view helper will display a "1" above/below the items if there is just one page of results. While this is technically correct, it's confusing for the user, since the single "1" is not recognized as a paginator.
I suggest removing the page list (ul class="f3-widget-paginator") completely if there is only one page. Or at least make it omittable with a configuration parameter (omit-single-page-paginator).
Would a quick workaround be that you use a if-condition to see if you have more items than should appear on one page, and only output the paginator in that case?
Only if you put everything inside the paginator in its own partial, otherwise you'd have lots of duplicate (html) code. And even this workaround is an unneccessary duplication of code, even if it's just the one line for the partial.
Actually, this is my current workaround, but I'd prefer a cleaner solution that doesn't lead to unnecessary duplication of code, hence the request here in the forge.
- Project changed from 2559 to TYPO3 Core
- Category changed from Fluid: Widgets to Fluid
- Target version deleted (
next-patchlevel)
- Status changed from New to Rejected
in theory this might be really simple but the pagination also provides an input field to set the max records per page.
so imagine 200 records, and default 100 per page. you will get a pagination with 2 pages, all fine. now someone sets the max records per page to 500 and only one page, the pagination will disappear and no way to reset the max record info except reloading the module.
with CMS 7 the pagination looks really nice and there is also with just one page no doubt that this is a pagination. therefore I am closing this issue.
Also available in: Atom
PDF