[TYPO3-mvc] FLUID :: how can you access properties of m:n related objects?
Roland
most.wanted at gmx.at
Thu Nov 3 11:02:14 CET 2011
> you can use an iterator for this
>
> <f:for each="{produkts}" as="produkt" iteration="produktIterator">
> <f:if condition="{produktIterator.isFirst}">
> ...
>
> See the Fluid Viewhelper for if on the possibilities you have.
hi henjo,
thanks for your reply!
your tipp is helpful (i would have to modify it a little to output the
first "Zulassung" - and not the first "Produkt") if i really only needed
to output the first "Zulassung". Thanks.
BUT: my example was simplified...
... i have to output the first "Zulassung" inside the link-viewhelper!
<f:link.action action="show" arguments="{produkt:produkt,
firstzulassung=XYZ}">weiter</f:link.action>
...where XYZ would have to be the uid of the first "Zulassung" of the
"Produkt" object.
maybe the only/better way to achive this is the solution Sebastian
suggested: to write a dedicated viewhelper?
or do i need a widget to achive this?
More information about the TYPO3-project-typo3v4mvc
mailing list