How to subscribe to Content(NewsItems, Events, Blogs, etc) CRUD operations
Hi there is work around to know when a NewsItem was inserted, I wish to make custom action something like send a mail or trace a log.
Why this notifications are not available to be subscribed to them with the EventHub ?
Something similar to this link: docs.sitefinity.com/for-developers-work-with-events
Googling I found this: www.sitefinity.com/.../email-notification-about-new-comments but its not clear, and there is 3 questions(the lastest) wihout an anwser in this post.
Best regards
Hi ,
Depending on where you want to plugin, you can either use the IDataEvent from the EventHub and check for the item type - whether it is a news item - this will be called on every operation. Another option is to use on publishing event of the lifecycle decorator, as described here.
Hope this helps.
Regards,
Nikola Zagorchev
Telerik