HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsRepositoryRepositoryWrap filename with download linkWrap filename with download link
Previous
 
Next
New Post
3/14/2012 1:27 PM
 
I'd like the user to click the file name to download instead of using the [DOWNLOAD] token.  I've been using A HREF with the FILEURL but that is giving the user the full unique file name instead of hte proper name.  Any idea?
 
New Post
3/15/2012 12:19 PM
 
Alternatively, can I change the "DownloadButton.Text" to be the [TITLE] token instead of "- DOWNLOAD" , that will effectively accomplish the same goal.  Any idea how to do this?
 
New Post
4/1/2012 9:52 AM
 

you can add a DOWNLOAD setting to the [TITLE] token in the template.xml file and set it's value to true

then when the user clicks on the Title, the file will be downloaded


 
New Post
4/10/2012 10:31 AM
 

That doesn't seem to work for me.  I'm running v3.5.6.  This is what my TITLE token inside the template.xml file now looks like.  Did I get something wrong?  Not sure if it was case sensitive, I tried both Download and DOWNLOAD as the name.

<Object>
  <Token>[TITLE]</Token>
  <Settings>
   <Setting>
    <Name>CssClass</Name>
    <Value>SubHead</Value>
   </Setting>
   <Setting>
    <Name>DOWNLOAD</Name>
    <Value>True</Value>
   </Setting>
  </Settings>
 </Object>

 
New Post
4/10/2012 2:36 PM
 

:)  it IS case-sensitive, but for both the name and the value
This should work (lower case 'true')

<Object>
  <Token>[TITLE]</Token>
  <Settings>
   <Setting>
    <Name>CssClass</Name>
    <Value>SubHead</Value>
   </Setting>
   <Setting>
    <Name>DOWNLOAD</Name>
    <Value>true</Value>
   </Setting>
  </Settings>
 </Object> 

 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsRepositoryRepositoryWrap filename with download linkWrap filename with download 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.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.