[FLOW3-general] Fluid: call a property by name with an own argument

Bastian Waidelich bastian at typo3.org
Wed Nov 2 09:34:20 CET 2011


Jens wrote:

Hi Jens,

> I would like to do something like this:
> <p>{myEntity.{anyPropertyName}}</p>

That's currently not supported (see [1]).

> My example will not be rendered at all.
> Is there a way to get it?

I would be interested in the concrete example. Usually you want to put 
such logic in your domain model. But as the FAQ explains, you can work 
around this with a small ViewHelper.

Best,
Bastian

[1] 
http://forge.typo3.org/projects/typo3v4-mvc/wiki/FAQ#How-can-I-use-dynamic-array-indexes



More information about the FLOW3-general mailing list