embed-inline tag can work for you. Users can navigate, pickup a file as related object and embed it in the XML block as embed-inline element. Then make a tpl file for the File class (I assume it is a File class) which in embed-inline view will show as <a href="content/download/....">{$object.name|wash()}</a> In addition you can also pass custom parameters if you require any.
Thank you Łukasz. That did the trick. I had completely overlooked the posibility of inserting the object in for example an article, and not a link.
Damien: I forgot to mention that I had allready read your blog entry, but couldn't make it work. I succeeded adding the download class, but making the link_download.tpl template linking to the object's binary content was the problem.
Thank you both for helping out, anyway:)
You must be logged in to post messages in this topic!