FileDownloadR 3.0.0 Snippet FileDownloadLink isn't working

Hello all,

I go creasy with this extension. I just want to print hashed links wich are stored in a TV.
GetImageList iterates the TVs and prints the templates.

Inside of the template I want to hash the link and print the hashed link.

The first Snipped is working, but is for listing files from a directory with a lot of templating.

[[!FileDownload?
&getFile=`/assets/bmwi.jpg`
]]

The second Snipped isn’t working and I don’t know why and do not have any log?!

[[!FileDownloadLink?
&getFile=`/assets/bmwi.jpg`
]]

What am I doing wrong?

Best Regards
björn

There seems to be a problem with the default template in the code.

Supply your own template with the tpl property:

[[!FileDownloadLink?
    &getFile=`/assets/bmwi.jpg`
    &tpl=`@CODE <a href="[[+link]]">[[+filename]]</a>`
]]
1 Like

Thanks a lot.

Your code showed the following:
grafik

And the link is hashed and working. :metal:

I tried the same code as you showed but had a colon after “@CODE:”.

Thank you very much!

1 Like

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.