[TYPO3-mvc] Fluid f:if question, other viewHelpers
Dawid Pacholczyk
dpacholczyk at gmail.com
Fri Dec 3 20:54:05 CET 2010
It is allowed but you need to do it like this
<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
Best regards,
Dawid Pacholczyk
Dnia 2010-12-03, pią o godzinie 19:54 +0100, Kay Strobach pisze:
> Hey list,
>
> just a question why is something like the following not allowed?
>
> <f:if condition="{myvar}=='test'">
> Displayed if myvar equals test
> </f:if>
>
> I found that it's not allowed, but not how to solve that (current
> idea:viewhelper ... :), or why it's not allowed.
>
> I think, it's often so that we need some mapping.
>
> http://www.slideshare.net/skurfuerst/schulung-fluid-templating
>
>
> Another question:
> Is it planned to implement things like substr, strtolower, strtoupper?
> (sometimes needed to autogenerate links to assets) ;) Otherwise i would
> do it on my own for my extension.
>
>
> Best regards
> Kay
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list