Sitefinity CMS enables you to subscribe to various events through its EventHub class. You can subscribe to any event that implements the IEvent interface and specify the logic that will be executed upon firing that event.
In some cases, however, not all events can be exposed in a way that lets the EventHub class use them. In such situations, you can still subscribe for an event using the DataProvider or the Manager class itself by hooking up to the class's Executing method.
For example, if you want to subscribe to the the events when a page is edited or published (Edit or Publish states), you can use the PageManager.Executing event in the Global.asax file of your web application.
NOTE: If you do not have a Global.asax file added to your project, in the context menu of your project, click Add » New Item… » Visual C# » Web » Global Application Class.
NOTE: You need to replace the comments after "//..." with your specific information and logic.
As a result of subscribing to the events of editing or publishing a page you need, you can log the relevant information, log it in a file, send email notifications, and so forth.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity