[TYPO3-mvc] Re: paginate widget looses object property (sub object))
David Effendi
david.effendi at limeflavour.com
Tue Mar 8 09:35:39 CET 2016
<f:widget.paginate objects="{comments}" as="paginatedBlogs" configuration="{itemsPerPage: 5, insertAbove: 1, insertBelow: 0, maximumNumberOfLinks: 10}">
I guess your fault is here "paginatedBlogs" - or is this just a copy/paste misspelling?
In your setup it should be
<f:widget.paginate objects="{comments}" as="paginatedComments" configuration="{itemsPerPage: 5, insertAbove: 1, insertBelow: 0, maximumNumberOfLinks: 10}">
<f:for each="{paginatedComments}" as="comment" iteration="commentIterator">
<f:for each="{comment.replies}" as="reply" iteration="replyIterator">
</f:for>
</f:for>
</f:widget.paginate>
I recommend reading this
http://xopn.de/blog/two-surprising-typo3-performance-tips-for-extension-developers
All best
David
More information about the TYPO3-project-typo3v4mvc
mailing list