TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _feature-34944:
|
||||
|
||||
=====================================================================
|
||||
Feature: #34944 - PaginateViewHelper handles non-query-result objects
|
||||
=====================================================================
|
||||
|
||||
See :issue:`34944`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
The PaginateViewHelper accepts input collections of following types:
|
||||
|
||||
- :code:`QueryResultInterface`
|
||||
- :code:`ObjectStorage`
|
||||
- :code:`\ArrayAccess`
|
||||
- :code:`array`
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<f:widget.paginate objects="{blogs}" as="paginatedBlogs">
|
||||
<f:for each="{paginatedBlogs}" as="blog">
|
||||
<h4>{blog.title}</h4>
|
||||
</f:for>
|
||||
</f:widget.paginate>
|
||||
|
||||
|
||||
.. index:: Fluid
|
||||
Reference in New Issue
Block a user