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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications