Repository and queries · Question 9 of 12
How do you page through the result of an Extbase repository in TYPO3 v14?
1 answer is correct. Medium
Show answer
Answer
- C Create a QueryResultPaginator from the result, the current page and the items per page, and pass it to the view together with a pagination such as SimplePagination
Explanation
Fluid widgets such as f:widget.paginate no longer exist since TYPO3 v11. Instead you use the pagination API: new QueryResultPaginator($conferences, $currentPage, 10) returns the items of the page, new SimplePagination($paginator) or SlidingWindowPagination the page numbers for the template. findAll() has no parameters, and setPagination() does not exist.