[FLOW3-general] Fluid: Condition with arguments

Mathias Bolt Lesniak, LiliO Design mathias at lilio.com
Thu Nov 3 11:30:19 CET 2011


Hi!

I'm working on a project where people can register for meetings ("exchanges"), and I am trying to implement a Fluid template to display the participants' statuses ('unconfirmed', 'confirmed' or 'declined'). Since the condition requires both information about the user and the exchange I would like to make a condition like this:

<f:if condition="{exchange.statusConfirmed(user:user)}">yes, confirmed</f:if>

But, as far as I understand, I can't supply arguments to functions in a condition. Correct? Do I really have no other option than writing a ViewHelper for this simple condition? It seems like quite an overkill.


Best wishes

Mathias Bolt Lesniak
LiliO - www.lilio.no
mathias at lilio.com


More information about the FLOW3-general mailing list