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 ForumsRepositoryRepositoryExternal URLExternal URL
Previous
 
Next
New Post
3/4/2008 2:43 PM
 

Hi there,

Is it possible to be able to expose an external URL for a repository download so that I can place the link on another site and invoke the download?

Many thanks in advance for your help

Nick.

 
New Post
3/4/2008 5:21 PM
Accepted Answer 

Yes, there are two options for doing that

1. use a [PERMALINK] token in your template.html file. That will generate a URL to the Repository page and display that particular item

2. use a [FILEURL] token in your template.html file. That will be a direct URL to the file associated with the Repository item. The DOWNSIDE of using this method is that the download will not increment the download count for the item. So if you're interested in keeping track of the number of downloads, use method 1

 
New Post
3/5/2008 10:43 AM
 

Excellent!  Thanks a million for your help Steve

 
New Post
3/5/2008 4:46 PM
 

can you explain this a little better.  I would like to do this as well.  where is the template.html file?

 

 
New Post
3/6/2008 11:56 AM
 

The repository module uses 'templates' to format the output of the module. In fact, the repository module ships with a number different templates that allow you to use the module for different purposes by altering the format of the input/output.

Standard templates are stored in the /DesktopModules/Repository/Templates folder. And you use the module settings page to select which template you want to use.

So, for example, if you are using the filelist template, the module will use the files in the /DesktopModules/Repository/Templates/filelist folder.

HOWEVER, if you want to change a template, I suggest the following method to avoid having your changes overwritten on any module updates...

Example for changing the filelist template:
1. go to the root folder for the portal where you want to make the change and create a folder named RepositoryTemplates. eg: If you want to change the template in Portal 0, then create the following folder .. /Portals/0/RepositoryTemplates
2. create a folder with the same name as the template, in this case you would create a folder named /Portals/0/RepositoryTemplates/filelist
3. copy the files from /DesktopModules/Repository/Templates/filelist to /Portals/0/RepositoryTemplates/filelist
4. change the files in the /Portals/0/RepositoryTemplates/filelist folder.

Following that process will prevent your changes from being overwritten if you upgrade to a newer version of the repository module.

BTW: You can tell where your template is being loaded from on the module settings page, if the template name is preceeded with an asterisk, it means it's being loaded from the /Portals location and not the /DesktopModules location.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryExternal URLExternal URL


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