Feature #60271

Paginate viewhelper, should also support arrays

Added by Sebastian Strasser over 6 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-07-11
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

Hello,

i want to use this viewhelper for a search result page,

<f:widget.paginate objects="{contacts}" as="paginatedContacts" configuration="{itemsPerPage:8, insertAbove:0, insertBelow:1, maximumNumberOfLinks:10, addQueryStringMethod: '{method}'}">
<div class="container map_search_results">

    <f:for each="{paginatedContacts}" as="contact">

        <f:render partial="List/Contact" arguments="{contact: contact, lang: lang}" />

    </f:for>
    <div class="clear-fix"></div>

</div>
</f:widget.paginate>

but i got a php error:
PHP Fatal error: Call to a member function getQuery() on a non-object in ...\cms\typo3\sysext\fluid\Classes\ViewHelpers\Widget\Controller\PaginateController.php on line 76

No data to display

Also available in: Atom PDF