[TYPO3-dev] Generating a secure PDF download link in Fluid
Mark Howells-Mead
m.howells-mead at frappant.ch
Wed Apr 8 11:28:42 CEST 2015
Hi all
After all that, the problem was that I hadn’t been using a FAL field in the backend. The solution is:
# BE
<flux:field.inline.fal name="downloadFile" multiple="FALSE" allowedExtensions="pdf" />
# FE
<v:variable.set name="downloadFile" value="{v:content.resources.fal(field: 'downloadFile') -> v:iterator.first()}"/>
<a class="downlow" download href="{downloadFile.url}">Download</a>
Cheers
Mark
More information about the TYPO3-dev
mailing list