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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  Link to document in repositroy
Previous Previous
 
Next Next
New Post 12/6/2007 11:53 AM
User is offline gkeffer
10 posts
10th Ranked


Link to document in repositroy 

I have seen several threads on this, but no real answers.  I have a repository setup with about 50 pdf documents in it.  I would like to link from another page to the directly to the individual document in the repository module.  If the surfer wants he can then download.  What I have setup now is a link to the repository page and then the surfer needs to locate the correct document.  If I could link to the individual document I would be golden.  Any ideas???

 
New Post 12/6/2007 12:43 PM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Link to document in repositroy 

here's the definitive answer ...

it depends on what you mean by "directly to the individual document".

That can be intepreted 2 ways. 

1) when a user clicks on a link, they should be redirected to the page with the repository module that contains the document and that document should be displayed, at which point they can download the file by clicking on the DOWNLOAD link associated with that item.

2 ) when a user clicks on the link, they should see the File Save Dialog box popup and they should be able to open or save the document without them being redirected to another page. 

You CAN do #1 right now. By including a [PERMALINK] tag in your repository template.html file. The tag will generate a URL that use can then use on any page or other module. So, to use the [PERMALINK] feature you would do the following...

1. add a [PERMALINK] tag to your template.html file in the location where you want the hyperlink generated
2. upload item(s) to your repository module
3. for each item displayed you will see a hyperlink titled 'Permalink'. Right-click on the hyperlink and select "Copy Shortcut" .. or just click on the Permalink hyperlink and then when the repository page is displayed, copy the URL from the Address bar.
4. now, on another page, you can insert a link in an HTML/Text module or any other type of module and paste the Permalink URL.

When a user clicks on that hyperlink, they will be redirected to the page with the repository module and ONLY that specific file will be displayed, they do NOT have to search for it. The Permalink will filter the repository module to only display that one item. The user can then download the file associated with the item by clicking on the DOWNLOAD link.

if you are looking for #2 ... then no, you cannot craft a link ( and by link I mean a standard URL that could be used in an HTML/Text module or any other moduel ) that will result in a repository document being directly downloaded without redirecting to the page where the repository module resides.

So, the obvious question is ... why the hell not???

answer: the current version of the repository module ( and I am only referring to the current version, all of this will be thrown out the window when 4.00.00 is release which is a complete re-design of the module ) there are a couple of features that the module adds above and beyond a simple documents module. The first is security. Security is enforced at runtime when the repository page is displayed. The current user's security roles are compared to the module's settings to see if the user should be able to download items from that particular repository. Since the code to do this validation is part of the repository module, having a URL link on another page that attempts to access a physical file stored within the portal's folder structure will not execute that code so there is no way to enforce any security restrictions. Secondly is counting the number of downloads. Again, the logic to increment the number of times a file is downloaded is implemented within the repository module's code. So if the repository module itself is not being displayed, then it's code is not being executed, and the code that updates the number of downloads is not being executed, so you lose that basic functionality with a direct link.

I hope that's clear and you understand the issue, and hopefully, option #1 will suffice for now. And as I said, with 4.00.00 it will be a whole new ballgame, but that's not going to help you today.


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 12/7/2007 8:17 AM
User is offline gkeffer
10 posts
10th Ranked


Re: Link to document in repositroy 

Scenario 1 is exactly what I need.  I tried adding the [PERMALINK] tag to the niftytoggle template.html, but it doesn't show up on anything.  Do I need to refresh?  Do I need to add something somwhere else.  I am a newbie and am learning as I go, but I guess I am a little dense and I am not really a programmer, I just follow directions and sometimes I can get it to work.  Any additional help would be appreciated.

 
New Post 12/12/2007 7:31 AM
User is offline Declic Video
903 posts
declic-video-fx.com
7th Ranked


Re: Link to document in repositroy 

Read this, it shoudl help: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/54/threadid/148370/scope/posts/Default.aspx

DV

 
New Post 12/18/2007 8:30 AM
User is offline gkeffer
10 posts
10th Ranked


Re: Link to document in repositroy 

I have read thru the thread you sent.  It does not explain how to setup the permalink so it displays.  I tried adding [PERMALINK] token to my html template, but nothing shows up.  I am at a loss and my client is very anxious.  Can you give me any further help????

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  Link to document in repositroy
 


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.

 


AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com

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