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
winfomatic:
What am I doing wrong?
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:
And the link is hashed and working.
I tried the same code as you showed but had a colon after “@CODE :”.
Thank you very much!
1 Like
system
Closed
June 7, 2023, 11:52am
4
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”.