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 ForumsRepositoryRepositoryLinking graphic to downloadLinking graphic to download
Previous
 
Next
New Post
2/8/2011 9:51 AM
 
Hello,

We use the repository module on several sites.  It's a great little core module.

One thing I would like to see if we can fix is linking the graphic to the download of the file.  We use it for instance in a newsletter section on one of our sites and people tend to click on the graphic we associate to the file, when they do another browser window launches and with just the graphic displayed.  Sometimes the user misses the "Download" link and gets caught up in the graphic thinking something is wrong making them frustrated.

Is there a way to link the graphic to the file so it can also be used as a download link?

Thanks,

Dave
 
New Post
2/9/2011 12:28 PM
 
Open the template.xml file for the Repository template you are using and look at the IMAGE token
For example, in the default template it looks like this...

<Object>
    <Token>[IMAGE]</Token>
</Object>

 Add a setting so your IMAGE token now looks like this...

<Object>
    <Token>[IMAGE]</Token>
    <Settings>
        <Setting>
            <Name>DOWNLOAD</Name>
            <Value>true</Value>
        </Setting>
    </Settings>
</Object>

Save it, and now when your users click on the Image, it will kick off the download process.
Let me know if you have any problems
 
New Post
3/11/2011 10:05 AM
 
Hi Steve

I just this suggestion but I get the following error:
Server Error

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.


and I notice on the area where the image is it has the following text:
" target="_blank"> Thumbnail


and if I point to the image this is what I see in the status bar:

http://204.236.130.202/Download/SalesmanInABox/tabid/1028/language/en-US/%3Cinput%20type=

What could be wrong?

thanks
Jam
 
New Post
3/11/2011 2:12 PM
 
I know XML code is case sensitive.. I tried using difference cases for the word 'Download' but still it doesnt work. Following is the code I used:

<Object>
        <Token>[IMAGE]</Token>
        <Settings>
            <Setting>
                <Name>Download</Name>
                <Value>True</Value>
            </Setting>
        </Settings>
    </Object>

What could be wrong?
thanks
Jam
 
New Post
3/11/2011 3:14 PM
 
DOWNLOAD   - all caps
true  - all lower case
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryLinking graphic to downloadLinking graphic to download


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