Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

link to download

Go to End

4 Posts   1868 Views


Community Member, 22 Posts

28 April 2008 at 8:22pm


I'm trying to create a template with images. Every image is a link with a download, only I can't figure out how to do that. Can somebody help me with that?
The code in my template is:

<ul id="informatieCentrum">
<% control Informatie %>
<li><a href="linkToDownload" id="trigger_$ID" title="">$Image.SetWidth(140)</a></li>
<% end_control %>

In the cms I've created a second imageField for selecting the file to download.
Is that the right way to do this?

Thanks in advance for your help


Community Member, 37 Posts

28 April 2008 at 8:30pm

Are you able to post your Informatie.php file


Forum Moderator, 5523 Posts

28 April 2008 at 8:47pm

you can do <a href="$Image.URL" .. and that should be able to link to the actual version of the image and allow people to download it


Community Member, 22 Posts

28 April 2008 at 8:58pm

Thanks for the quick reply, the problem is solved with $Image.URL .