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 ForumsForm and ListForm and ListUse of Tokens for file link instead of LinkClick.aspxUse of Tokens for file link instead of LinkClick.aspx
Previous
 
Next
New Post
8/11/2011 2:10 PM
 
Hello..
I was wondering if there's a way to use a calculated column to generate the proper location to a file instead of F&L using LinkClick.aspx.

I have a column which is configured for Downloads; we'll name it File.
I have another column which is configured as Text; we'll call it FileDescription.
The final column will be the calculated column; we'll call it File Name.

Ultimately, what I'm trying to do is:
'<a href="' + [File] + '" target="_blank" >' + [FileDescription] + '</a>'

But this isn't working properly because the Downloads column defaults to LinkClick.aspx for it's value.  And I'm trying to get away from when someone tries to save the PDF, it's filename is LinkClick.PDF; I want to keep the original filename.

What would the expression be of the Calculated column (maybe using Tokens) to generate the proper URL of the file instead?

Expression:
'<a href="' + [Portal:PortalAlias] + '/' + [File:Path] + '/'+ [File:Name] + '" target="_blank" >' + [FileDescription] + '</a>'

 
New Post
8/11/2011 3:31 PM
 
please use hiden column reference to access url directly

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/12/2011 8:08 AM
 
Sebastian..
Thank you for the reply.

I didn't even think of it, but we can use the Rich-Text entry and then the end-user just writes what they want and link it to whatever they wish.
This works great, removes the use of linkclick.aspx, and it's easy for the end user since they're familiar with the HTML editor box.
Thank you again.. -Jeff
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUse of Tokens for file link instead of LinkClick.aspxUse of Tokens for file link instead of LinkClick.aspx


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