[TYPO3-mvc] FLUID :: how can you access properties of m:n related objects?

Henjo Hoeksma me at henjohoeksma.nl
Thu Nov 3 11:34:43 CET 2011


You can also assign a variable in the controller. Not specifically need for
a ViewHelper.

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Thu, Nov 3, 2011 at 11:02, Roland <most.wanted at gmx.at> wrote:

>  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?
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list