ASPX templates
Version 5.x > ASPX templates > select multiple related documents View modes: 
User avatar
Member - 1/17/2012 7:41:18 PM
select multiple related documents
I have a client that is using kentico v5.0.3784.

They are about to undertake a large amount of data entry to upgrade their product catalogue.

The site uses kentico's 'related documents' functionality. My client has commented that the process of populating the related docs is very time intensive and involves a lot of repetitive traversal of the content tree when populating multiple related documents for the same parent document.

Is there an easier way that multiple related documents can be selected for a document?

thanks in advance for your reply

User avatar
Kentico Support
Kentico Support
kentico_radekm - 2/5/2012 3:18:22 AM
RE:select multiple related documents

Regrettably, bulk operation for related documents is not supported in UI. However, you can achieve it using API and mainly following method:

CMS.TreeEngine.RelationshipProvider.AddRelationship(int leftNodeId, int rightNodeId, int relationshipNameId);

More info about this method can be found in API reference file. You can also see live example and take an inspiration from it in \Relationships\AddRelatedDocument.ascx.cs, SaveRelationship method.

Best Regards,
Radek Macalik