[TYPO3-mvc] Fluid conditions with logical OR/AND?
Bastian Waidelich
bastian at typo3.org
Mon Sep 20 16:27:21 CEST 2010
Alexander Dick wrote:
Hi Alexander
> how do I accomplish something like
>
> <f:if condition="{item.foo} || {item.bar}">
<f:if condition="{item.foo}">
<f:else>
<f:if condition="{item.bar}">
// bla
</f:if>
</f:else>
</f:else>
> <f:if condition="{item.foo}&& {item.bar}">
<f:if condition="{item.foo}">
<f:if condition="{item.bar}">
// bla
</f:if>
</f:else>
..not very nice, but that's currently the only way to do it.
But you might also think about refining your domain model and abstract
the needed condition into a model method.
HTH
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list