[TYPO3-mvc] fluid doesn't return properties of related objects

Michael Bakonyi kontakt at mb-neuemedien.de
Mon Jan 30 19:18:14 CET 2012


Hi Claus,

>
> Classic mistake. In your "as" argument, don't use {name} UNLESS you
have a template variable, type string, containing the name of the
template variable you want to use afterwards.
>
> In your example the correct way would be:
>
> <f:for each="{project.realties}" as="realty">
>
> Everybody has made that mistake ;)

Oh come on, can't the solution be a little bit more sophisticated than
that?! :-D Wonder why Extbase didn't throw an error ..

Thx a lot for your quick response and have a nice evening,

Michael


More information about the TYPO3-project-typo3v4mvc mailing list