[TYPO3-mvc] if-ViewHelper - Multiple conditions with logical and/or?

Stephan Reuther - development.IT s.reuther at internet-chemnitz.de
Sun Jan 31 18:13:45 CET 2010


Hi,

>> Is it possible to link multiple conditions of an if-ViewHelper with
>> logical operators like || or && ?

> If you need such complex conditions, maybe it's worth putting them
> either to your model (if they belong to the domain), or write a custom
> ViewHelper for them.

I solved it with custom ViewHelpers, but it floods the template, especially
with tag based syntax. such an "easy" logical chaining task can be done
in a more easy way, i think.
"||" and "&&" don't seem to be very natural for a non-php template author,
but "and" and "or" might do that job as well!?

Regards,
Stephan




More information about the TYPO3-project-typo3v4mvc mailing list