I'm trying to get the next news item from within current news item.
Using the extension "vhs" and tx_news.

{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<f:for each="{news}" as="newsItem" iteration="iterator">
   Current title: {newsItem.title}
   <v:variable.set name="nextNews" value="{v:iterator.next(needle: newsItem, haystack: 
news)}"/>
   Next title: {nextNews.title}
</f:for>

It will print correct titles once. Then the loop ends abruptly.
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to