Handle insertion of related page in code

Tom Troughton asked on December 11, 2015 10:23

Hi. Does anyone know if it is possible to handle the insertion of a related document via the Related Pages tab in Kentico 8.2? I assumed the DocumentEvents.Update events would fire but that's not the case. I'm trying to add checks to ensure the correct page types have been used for a particular relationship...

Recent Answers


Dawid Jachnik answered on December 11, 2015 13:49

Hello, Try catch it on the events in the object CMS.DocumentEngine.RelationshipInfo

 RelationshipInfo.TYPEINFO.Events.Insert.After+=Insert_After;
 or
 RelationshipInfo.TYPEINFO.Events.Update.After+=Update_After;
1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.