kentico_radekm
-
2/5/2012 3:18:22 AM
RE:select multiple related documents
Hello.
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
|