[TYPO3-mvc] how to use extbase_pager for Tx_Extbase_Persistence_ObjectStorage object

Kevin Ulrich Moschallski km at 3digit.de
Wed May 12 17:47:54 CEST 2010


Hi everybody,

i try to use the viewhelper extbase_pager in my extension. but i can't figure out how to modify the query for an Tx_Extbase_Persistence_ObjectStorage object. Is there any way to do this, or do i need to write my own method in the repository?

I will give you a short overview on what i try to do:

I have a table with quizzes. Each quiz has one or more questions. The questions are related to the quiz with an MM table. When i simply call the getter for the questions everything works as excepted. But now i want to only display one question per page. So i looked around and found the extbase_pager viewhelper which also got an utility class to prepare the query but i don't know how to manipulate the query in quiz.php in my model.

Does anybody ever used extbase_pager and could please give me a hint where i could manipulate the query or how to build a custom query?

Thanks for your help in advance.

P.S.: I'm very new into extbase, so please be gentle if i did any awful mistakes in describing my problem.

Regards,

Kevin


More information about the TYPO3-project-typo3v4mvc mailing list