[TYPO3-mvc] Download link with FAL
Frans Saris
franssaris at gmail.com
Tue Jun 3 20:12:50 CEST 2014
Hi Bas,
just use
<a href="{file.originalResource.publicUrl}">Download</a>
publicUrl gives a direct link to the file when possible or else a link to
the file eID script (only since 6.2)
gr. Frans
2014-06-03 18:19 GMT+02:00 Bas van der Togt <bas at profinit.com>:
> Hello list,
>
> What is the best way to make a file download in fluid with FAL?
>
> Now i have: <a href="{f:uri.image(src: file.file.uid, treatIdAsReference:
> 1)}" target="_blank">Download</a>
>
> But i suppose there's a better way.
>
> Best regards,
> Bas
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
More information about the TYPO3-project-typo3v4mvc
mailing list