[TYPO3-mvc] Download link with FAL

Bas van der Togt bas at profinit.com
Tue Jun 3 21:16:52 CEST 2014


Thanks a lot Frans! That's what i was looking for :-)
Any idea why i don't see property publicUrl when i do a debug: 
<f:debug>{file.originalResource}</f:debug> ?

Frans Saris schreef op 03-06-14 20:12:
> 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