[TYPO3-mvc] How do you get the "next" record when on a detail view?

Stephen Bungert stephenbungert at yahoo.de
Fri Jan 27 21:11:22 CET 2012


By not outputting anything I don't mean the debugged output is empty. I mean 
the TYPO3 page is all white and timesout.


"Stephen Bungert" <stephenbungert at yahoo.de> schrieb im Newsbeitrag 
news:mailman.1.1327693647.2500.typo3-project-typo3v4mvc at lists.typo3.org...
>I have a function in my repository:
>
> /**
>  * Finds the single view's item's next item
>  *
>  * @param integer $uid The uid of the current single item.
>  * @return mixed An item
>  */
> public function findNext($uid) {
>  $query = $this->createQuery();
>  $query->matching($query->greaterThan('uid', $uid));
>  return $query->execute();
> }
>
> That I call in my detail action in my controller.
>
> $uid is the uid of the detail record, but trying to debug the return of 
> this function causes TYPO3 to not output anything.
>
> I tried looking at other extbase extensions like news and  blogexample but 
> I couldn't see any examples of how to get next records.
>
>
> Thanks for any help.
>
> Stephen. 



More information about the TYPO3-project-typo3v4mvc mailing list