Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Links to document attachments View modes: 
User avatar
Member
Member
sfbrown-hcso.tampa.fl - 10/20/2010 3:42:20 PM
   
Links to document attachments
We are creating a significant internal site where all of the documents will be stored under one folder structure. All other pages that need to use those documents will link to those documents.

On those different pages (quite a lot) there will be editable regions where it is expected that users will link to the documents. In other words, a user will want a clickable link for a health claim form or for a list of procedures on bomb threats.

The problem I am having is this... On the editable web part if you choose to link to the document in the tree structure, the link is to the document and not the attachment of that document (e.g. pdf, doc, xsl) which is what I actually want to display. So, if you click the link it takes you to the document page rather than downloading the attachment of that document.

I know how to use GetAttachment with the Guid but I can't expect end users to do the same. Is there a simple way to set this up? So that an end user can link to a document and actually get a link to the attachment? We are going to have thousands of documents and dozens of end users so this needs to be as simple as possible for the user.

Additional info... There will only be one attachment per document.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/26/2010 3:52:35 AM
   
RE:Links to document attachments
Hello,


did you consider using Media library? You could link the files directly in WYSIWYG Editor - Insert link.


Best regards,
Helena Grulichova

User avatar
Member
Member
sfbrown-hcso.tampa.fl - 10/26/2010 8:57:28 AM
   
RE:Links to document attachments
That was not really an option for us.

However, since we have the source code license for Kentico, we were able to add a few lines of code, recompiled Kentico and everything works great now. We also heard back from Kentico indicating that the easiest way to get this behavior is by altering the source code. They are apparently looking into this as a feature in future releases.

Thanks for your reply.