Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryImage as download link?Image as download link?
Previous
 
Next
New Post
2/7/2006 8:36 AM
 

It *is* possible but there are a couple of consequences of doing so.

There is a [FILEURL] tag which returns a URL to the file. So, technically you could wrap the [IMAGE] tag with an <a href> tag like this...

<a href='[FILEURL]'>[IMAGE]</a>

This will do what you want, clicking on the image will download the file. HOWEVER, there are 2 things that you should keep in mind if you do this.

1. The [DOWNLOAD] link increments the Downloads count for the item before downloading the item, so using the [FILEURL] to provide downloads will result in those downloads not being counted in the Downloads statistics for the item.

2. When a user uploads a file, the Repository module inserts a GUID between the filename and extension for 2 reasons, so that 2 users who upload a file with the same filename.ext will not overwrite each other's files, and to add some measure of security so that unauthorized users cannot 'guess' the names of files and download them. By using the [DOWNLOAD] link, the actual location of the physical file is not exposed to the browser, but using the [FILEURL] *will* expose the URL so that people will know where your files are being stored. Also, the [DOWNLOAD] link will *strip* out the GUID before downloading the file, but the [FILEURL] will not, so the file downloaded to the user will include the GUID.

Your choice, you can do what you want with the [FILEURL] tag in the current release as long as you understand the exposure of doing so.

You can use a static *graphic* image for the download link ( see my project blog for details ) but I don't think that's what you're talking about.

Mike,
IIf you don't mind ...when you get a chance, add the ability to add a "Download" setting to the [IMAGE] tag, which when set to "True" will cause the image to download the file instead of display the image full size in Gemini as an enhancement request. We should also add this "Download" setting to the [FILEICON] tag as well.

Thanks

 
New Post
2/7/2006 10:52 AM
 

Also please add it to the "Title"

Thanks Steve, this will get me what I need for now.


Icthus Technologies

Building Faith on the Internet
 
New Post
2/7/2006 10:53 PM
 
 
New Post
2/9/2006 10:50 PM
 

Hi Steve,

Great advice on this, thanks.  One quick question (I am new to all of this), how do I accomplish exactly what you outline above "wrap the [IMAGE] tag with an <a href> tag like this...".  I understand the consequences of doing so and would appreciate a simple explanation of how I edit that tag information.  I want to use the same image for every download, nothing fancy. 

Thank you, hopefully you are able to help.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryImage as download link?Image as download link?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out