[TYPO3-mvc] fluid <f:if > with a regular expression
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Sat Jun 12 14:59:28 CEST 2010
Am 12.06.2010 13:26, schrieb Fernando Arconada:
> useful to have a regexp operator in the if viewhelper?
> I think that it is a very common operation
Hello,
I'd write my own regular expression (preg_match) viewhelper
and pass it to the if viewhelper, like this:
<f:if condition="{my:pregMatch(subject: '{image.name}', pattern:
'~Thumbnail~')}">
</f:if>
Regards,
Thomas
More information about the TYPO3-project-typo3v4mvc
mailing list