[TYPO3-mvc] Fluid f:if question, other viewHelpers
Christian Zenker
christian.zenker at 599media.de
Mon Dec 6 17:45:09 CET 2010
On Fri, 03 Dec 2010 20:54:05 +0100, Dawid Pacholczyk
<dpacholczyk at gmail.com> wrote:
> <f:if condition="{myvar}==test">
> text
> </f:if>
>
> Or am I wrong ? It works for 100% for integers. I didn`t test it for
> strings but it should work the same
As far as I remember, the regexp just checks for integers on the right
side (not strings). Thats why it just sees a variable and a text node in
the above case. A workaround I used recently:
<f:alias map="{foobar:'test'}">
<f:if condition="{myvar}=={foobar}">
text
</f:if>
</f:alias>
This way you can trick the parser and change it as soon if the parts of
extbase were changed to have a clean solution.
Christian.
More information about the TYPO3-project-typo3v4mvc
mailing list