[TYPO3-mvc] sys_category and standard PaginateViewHelper

Kerstin Eitner eitner.kerstin at googlemail.com
Fri Jan 3 17:19:57 CET 2014


Hi Frans,

thanks for your reply!
I just hoped that I did something wrong and normally CategoryCollection 
implements the required QueryResultInterface ;)


Best regards
Kerstin


Am 03.01.14 17:02, schrieb Frans Saris:
> Hi,
>
> The problem is that the current core viewHelper doesn't support array's.
>
> See http://forge.typo3.org/issues/34944 there you will find a solution so
> you van create your own custom viewHelper.
>
> Gr. Frans
> Op 3 jan. 2014 15:35 schreef "Kerstin Eitner" <eitner.kerstin at googlemail.com
>> :
>
>> Hello list,
>>
>> does anybody know how to paginate the CategoryCollection (sys_category)?
>>
>> I'd like to use the standard PaginateViewHelper <f:widget.paginate> but a
>> TYPO3 Error tells me that the Collection does not implement the needed
>> TYPO3\CMS\Extbase\Persistence\QueryResultInterface.
>>
>> Am I doing something wrong here or do I have to write my own
>> PaginateViewHelper?
>>
>> I tried the following...
>> $categoryUid = 5;
>> $tableName = 'tx_myext_domain_model_book';
>> $collection = \TYPO3\CMS\Core\Category\Collection\CategoryCollection:
>> :load($categoryUid,TRUE,$tableName);
>>
>>
>> For further information: I am working with the TYPO3 6.2 master branch.
>>
>>
>> Thanks a lot and best regards
>> Kerstin
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>



More information about the TYPO3-project-typo3v4mvc mailing list