[TYPO3-ttnews] tx_news Picture Link

bernd wilke t3ng at bernd-wilke.net
Wed Jul 17 10:11:00 CEST 2013


Am 16.07.13 20:44, schrieb Patrick Werner:
> How can i create a link  for a picture added by the relation field?
> there are a lot possibilities for the added pictures to a news message,
> but no link!?

you have different possibilities to build up links in fluid. I think the 
nearest to what you search would be f:uri.external.
none of these will force a download instead of a showing in the browser.

if you want a forced download you need to use a further php which will 
provide an appropiate html-header and the file. as you do not want a 
script for every download you have to provide the script with a 
parameter to the file (but be sure that nobody can download every file 
from your server!)

so you can build a new viewhelper to call the download-script with the 
file as parameter automatically or build the link (dl-script with 
filename as parameter) by yourself in fluid.



bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-project-tt-news mailing list