[TYPO3-mvc] fluid <f:if > with a regular expression
Fernando Arconada
falcifer2001 at yahoo.es
Sat Jun 12 15:43:29 CEST 2010
your solution works very well and it's clean
Thanks everyone
El Sat, 12 Jun 2010 14:59:28 +0200, Thomas \"Thasmo\" Deinhamer escribió:
> 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