Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  Image Link
Previous Previous
 
Next Next
New Post 6/26/2008 10:28 PM
Unresolved
User is offline Andre
3 posts
10th Ranked


Image Link 

I would like to know if there is some way of making it so when you click on the image for the file it links to the download.  At the moment it opens a URL on the same page and displays the image for the file.

Thanks

 
New Post 6/30/2008 6:01 AM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Image Link 
Modified By Steve Fabian  on 6/30/2008 8:02:14 AM)

Try this..

- in the template.html file, change the [THUMBNAIL] token to [IMAGE]

- in the template.xml file, add a DOWNLOAD setting to the [IMAGE] token.

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

That should do it. Keep in mind though, that it will still respect the Download roles, so if a user cannot download an item by clicking on the Download button, they wont be able to download an item by clicking on the image either.


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 6/30/2008 10:44 PM
User is offline Andre
3 posts
10th Ranked


Re: Image Link 

Sorry to say it did not work, and yes the download is open for all users.

Here is the complate html file:

<TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="2" STYLE="border: 1px solid #CCCCCC";>

 <TR>
  <TD>
  <TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
  <TR BGCOLOR="Gainsboro">
   <TD CLASS="Head" ALIGN="Left" WIDTH="1" VALIGN="Middle">[EDIT]</TD>
   <TD CLASS="normal" ALIGN="Left" WIDTH="16" VALIGN="Middle">[FILEICON]</TD>
   <TD CLASS="Head" ALIGN="Left" VALIGN="Middle" style="padding-left: 3px;">[TITLE]</TD>
  </TR>
  </TABLE>
  </TD>
 </TR>

 <TR bgcolor=white>
  <TD>
  <TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
  <TR>
   <TD WIDTH=100 CLASS="normal" ALIGN="center" VALIGN="top" style="padding-left: 6px; padding-right: 6px;">
    <A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[IMAGE]" BORDER=0 ALT=""></a>
    <br>
   </TD>
 
   <TD CLASS="normal" ALIGN="left" VALIGN="top">
    [DESCRIPTION]
    <br>
    <hr>
    <table border="0" cellpadding=0 cellspacing=0 width="100%">
    <tr>
     <td align=left valign=top class="SubHead" width=75>[LABEL:FileSize]</td>
     <td align=left valign=top class="normal">[FILESIZE]</td>
    </tr>
    <tr>
     <td align=left valign=top class="SubHead" width=75>[LABEL:Downloads]</td>
     <td align=left valign=top class="normal">[DOWNLOADCOUNT]</td>
    </tr>
    <tr>
     <td align=left valign=top class="SubHead" width=75>[LABEL:Date]</td>
     <td align=left valign=top class="normal">[UPDATEDDATE]</td>
    </tr>
    <tr>
     <td align=left valign=top class="SubHead" width=75>[LABEL:Author]</td>
     <td align=left valign=top class="normal">[AUTHOR]</td>
    </tr>
    <tr>
     <td align=left valign=top class="SubHead" width=75">[LABEL:EMail]</td>
     <td align=left valign=top class="normal">[AUTHOREMAIL]</td>
    </tr>
    </table>
   </TD>
  </TR>
  </TABLE>
  </TD>
 </TR>

 <TR>
  <TD CLASS="SubHead" ALIGN="Right" VALIGN="Middle" COLSPAN="2" BGCOLOR="Gainsboro"
  style="padding-right: 6px;">
   [RATINGS]&nbsp;&nbsp;[COMMENTS]&nbsp;&nbsp;[DOWNLOAD]<br>[RATINGSform][COMMENTSform]
  </TD>
 </TR>
</TABLE>
<BR>

Here is the complet xml file:

<Objects>
 <Object>
  <Token>[EDIT]</Token>
  <Settings>
   <Setting>
    <Name>ToolTip</Name>
    <Value>Edit this file</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[TITLE]</Token>
 </Object>
 <Object>
  <Token>[CATEGORY]</Token>
  <Settings>
   <Setting>
    <Name>CssClass</Name>
    <Value>normal</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[AUTHOR]</Token>
 </Object>
 <Object>
  <Token>[AUTHOREMAIL]</Token>
 </Object>
 <Object>
  <Token>[DOWNLOADCOUNT]</Token>
 </Object>
 <Object>
  <Token>[COMMENTCOUNT]</Token>
 </Object>
 <Object>
  <Token>[DESCRIPTION]</Token>
 </Object>
 <Object>
  <Token>[FILESIZE]</Token>
 </Object>
 <Object>
  <Token>[CREATEDDATE]</Token>
  <Settings>
   <Setting>
    <Name>Dateformat</Name>
    <Value>ddd MM/dd/yyyy @ hh:mm</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[UPDATEDDATE]</Token>
  <Settings>
   <Setting>
    <Name>Dateformat</Name>
    <Value>ddd MM/dd/yyyy @ hh:mm</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[IMAGE]</Token>
  <Settings>
   <Setting>
    <Name>Download</Name>
    <Value>True</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[THUMBNAIL]</Token>
  <Settings>
   <Setting>
    <Name>Width</Name>
    <Value>100</Value>
   </Setting>
  </Settings>
 </Object>
 <Object>
  <Token>[RATINGS]</Token>
 </Object>
 <Object>
  <Token>[COMMENTS]</Token>
 </Object>
 <Object>
  <Token>[DOWNLOAD]</Token>
 </Object>
 <Object>
  <Token>[RATINGSform]</Token>
 </Object>
 <Object>
  <Token>[COMMENTSform]</Token>
 </Object>
 <Object>
  <Token>[FILEICON]</Token>
  <Settings>
   <Setting>
    <Name>Width</Name>
    <Value>12</Value>
   </Setting>
   <Setting>
    <Name>Height</Name>
    <Value>12</Value>
   </Setting>
  </Settings>
 </Object>
</Objects>

 
New Post 7/1/2008 6:18 AM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Image Link 

Change this

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

to this

[IMAGE]

Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 7/1/2008 6:59 AM
User is offline Will Strohl
1368 posts
www.WillStrohl.com
6th Ranked




Re: Image Link 

Steve, I know this is off-topic, but how did you make your code snippets so pretty?  :)


Will LinkedIn profile
DNN Training Videos | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  Image Link
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP