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 ForumsRepositoryRepositoryAny way to have external links to Repository documents?Any way to have external links to Repository documents?
Previous
 
Next
New Post
1/13/2009 9:28 PM
 

The Repository Download links are javascript.  Is there any way to easily link to a single document in the Repository from a text page on the site?  If not, any plans to do this? 

 
New Post
1/14/2009 12:56 AM
 

The Repository is about the only module in DNN that implements content revisioning.  It does this by inserting a unique identifer string in the middle of every filename (so multiple versions of the same file can be added and reside within the same "Repository" file folder).

I believe (someone correct me if I'm off the mark) the javascript is required in order to execute a postback to initiate a file serve operation that (1) determines which version of the file is the "current" version, and (2) serves the file with the original filename (the name before the file was added to the Repository) rather than the actual filename (with the unique identifier included in the middle).

Example:
If you upload three copies of a file "TEST.TXT" to the Repository, you'll end up with something similar to the following inside the "Repository" folder:

  TEST.0b125c4d-3c09-4041-be6b-948a1407d145.TXT
  TEST.7bad94b5-dc41-432e-93d2-a42da404b6db.TXT
  TEST.c9e63f4c-bcd2-4c25-8287-61043aa715ee.TXT

 
You have to initiate a download with the help of the Repository module in order to know which copy is the "current" copy and to serve up the file with a filename "TEST.TXT".  A direct link to the file would have to include the unique identifier and I doubt anyone wants to deal with that.

-mamlin


esmamlin atxgeek.me
 
New Post
1/14/2009 2:20 PM
 

Update to my previous post: 
I detailed only one of the two upload methods offered in Repository.  Apparently a second method exists that skips the versioning (renaming of files) and would allow direct URL-linking of uploaded files.

See Steve's response in this thread:

  http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/-1/threadid/281147/scope/posts/Default.aspx

-mamlin


esmamlin atxgeek.me
 
New Post
3/2/2009 3:39 PM
 

omg, I desperatly need to know how to do that, so I can send out direct download links in an email. I read the other post, and I looked at my Repository. I only see one upload option for me. It just says "file" and browse to find the file on my system to upload. Do I need to set up a new Repository? I will keep looking, but more hints would help me. TIA!

 

When I replace [file] with [urlcontrolfile] in the template form.html, I get an error -- Value cannot be null. Parameter name: input -- when I try to use the module to upl;oad a file. The form does not load correctly.

 
New Post
3/2/2009 5:14 PM
 

The URLCONTROL... tokens were added in 3.01.14.  If you are running an older version of the Repository module, you'l have to upgrade to get the new tokens and functionality.  The latest official version is 3.01.15.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryAny way to have external links to Repository documents?Any way to have external links to Repository documents?


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