[TYPO3-english] Paginate extension not working

TSniper masmoudi_moha at yahoo.fr
Mon Jan 30 09:31:12 CET 2017


Hi,

I have a project that have a custom extension listing articles like news but don't have a pagination option. Searching on TER i find this extension that seems pretty cool : https://typo3.org/extensions/repository/view/js_paginate

The problem that after i have installed it and also the code on the documentation :

<pg:Paginate objects="{articles}" as="paginatedArticles" configuration="{itemsPerPage: 5, insertAbove: 0, insertBelow: 1, maximumVisiblePages: 5, displayDots: 1}">

        <f:for each="{paginatedArticles}" as="article">

           ///Content ///

          </f:for>
</pg:Paginate>

On Frontend, i have this error showing : 
Uncaught TYPO3 Exception
#1273753083: Cannot cast object of type "TYPO3\CMS\Extbase\Persistence\Generic\QueryResult" to string. 

Please help me why this is not working ?
Thanks!


More information about the TYPO3-english mailing list