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 ForumsRepositoryRepositoryWhere are images stored?Where are images stored?
Previous
 
Next
New Post
10/7/2008 2:22 PM
 

This is the code in the template.html for the thumbnail.

<A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>

 
New Post
10/7/2008 2:23 PM
 

Yup, all users have access to downloads.

 
New Post
10/7/2008 2:28 PM
 

ok, that's the problem... the A HREF is wrapping the thumbnail and preventing the download logic from firing...

change the entire text from...

<A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>

to ...

[IMAGE]

if you want the image to trigger a download, you can't use the A HREF or IMG SRC tags, as that will just display a image. By simply using the [IMAGE] token and setting the XML DOWNLOAD setting to true, the module will replace the [IMAGE] token with an ImageButton, and then clicking on the image will trigger the download logic.

 
New Post
10/7/2008 4:47 PM
 

Ok, i made that change. Now do i change change the

 <Object>
  <Token>[DOWNLOAD]</Token>
 </Object>

or the

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

and what do i change it to. I tried everything I can think of and nothing worked.

 
New Post
10/8/2008 8:45 AM
 

template.html :  change the TD tag that contains the thumbnail to look like this...

 

<td width="100" class="Normal" align="center" valign="top" style="padding-left: 6px; padding-right: 6px;">
    [IMAGE]<br />
</td>

 

template.xml : change the IMAGE token to look like this...

 

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

You can change the width value (the numbers is red) in both files to control the size of the image.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryWhere are images stored?Where are images stored?


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