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.

Archive /

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

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

link to download


Reply


4 Posts   1548 Views

Avatar
blaater

Community Member, 22 Posts

28 April 2008 at 8:22pm

Hello,

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 %>
</ul>

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
Greets.

Avatar
spenniec

Community Member, 37 Posts

28 April 2008 at 8:30pm

Hi,
Are you able to post your Informatie.php file

Avatar
Willr

Forum Moderator, 5513 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

Avatar
blaater

Community Member, 22 Posts

28 April 2008 at 8:58pm

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