[Flow] resource ext, may i check within fluid

mario chiari ml at mariochiari.net
Fri Aug 29 10:16:28 CEST 2014


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






More information about the Flow mailing list