Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Questions about document attachments View modes: 
User avatar
Member
Member
kmiller-njtpa - 9/20/2013 11:14:30 AM
   
Questions about document attachments
I'm a new user of Kentico (our agency website was just revamped using Kentico). Apologies if this is in the wrong Forum. We're on v6.0.23 (SP1)‎.

We have been using the "attachments" feature to upload documents that are associated with each page, and linking to each attachment at the appropriate place in the page text. Recently two situations have come up that are probably related, but I can't find the answer. Remember that I'm a new Kentico user and am looking for solutions that are possible using the CMS Desk/Site Manager UI, although if you give me detailed instructions on how to implement other solutions (using code/transformations(?)/etc.) I am willing to give it a try.

1) I moved some text (using cut and paste), including hyperlinks, from one page to another. I would like to "move" the attachments as well. Is there some way to get at the metadata behind the attachment and change which document it is associated with? I am able to see all attachments in one list via the Site Manager / Administration / System / Files / Attachments page, but that only allows me to copy and/or delete from the filesystem and/or database (note that our system is set to store attachments in both the filesystem and database--is that wise?). The only brute force solution I could think of is to delete the attachment from one page and re-upload it on the other, but I would like to avoid that.

2) I would like to create a link on a page to an attachment from another page. Is that possible? I could always upload the same file as an attachments to each page, but that seems inefficient, and would require me to manage updates to the file in both places.

Thanks,
Keith Miller

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 10/4/2013 7:37:57 PM
   
RE:Questions about document attachments
Hi,

Unfortunately it is not possible to move the attachments by simply copying the URLs. However if your attachments are stored as CMS.File in the content tree, you can move them to a different part of content tree in bulk, using the list view in CMS Desk. If your attachments are stored as unsorted, or field attachment it is currently not possible to move them in bulk using standard Kentico CMS features. In order to move them from one document to another you would need to modify its record using attachments API.

As for storing files both in filesystem and database, this is actually the best solution. It gives you the features of storing files in SQL database (search) with the speed of direct filesystem access.

As for your last question, do you need to list attachments of one document on another document, or are you interested in listing documents on a Kentico document from a completely separate website?

Regards,

Josef Dvorak