[Flow] resource ext, may i check within fluid

mario chiari ml at mariochiari.net
Fri Aug 29 18:32:33 CEST 2014


Hi

<f:if condition="{0: file.fileExtension} == {0: 'pdf'}">

(thanks to IRC people)
m.



Il giorno ven, 29/08/2014 alle 10.16 +0200, mario chiari ha scritto:
> Hi
> 
> My model has a  \TYPO3\Flow\Resource\Resource  attribute $file.
> User is free to upload a either .jpeg or .pdf file. 
> 
> In my Fluid show template, may i check somehow the extension of the
> given resource, as to render different html codes, i.e.
> may I write something like 
> <f:if condition="{0: file.ext} != {0: 'pdf'}">  ?
> 
> Thanks
> Cheers
> mario
> 
> 
> 
> 
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow




More information about the Flow mailing list