[TYPO3-mvc] How to use contains() in a condition in fluid
Henrik Møller Rasmussen
info at hmrdesign.dk
Sat Nov 20 11:38:54 CET 2010
Hello,
Is it possible to test if an array contains an object in fluid? I want
to do the following:
....
<f:if condition="{team.members} CONTAINS {person}">
<!-- Do something here -->
</f:if>
...
Of course I can do the test in the controller and assign a boolean to
use in fluid, but I think it would be more elegant to do the check in fluid.
Alternatively I could write my own viewhelper doing the check.
Thanks!
- Henrik
More information about the TYPO3-project-typo3v4mvc
mailing list