How to subscribe to Content(NewsItems, Events, Blogs, etc) C

Posted by Community Admin on 04-Aug-2018 16:09

How to subscribe to Content(NewsItems, Events, Blogs, etc) CRUD operations

All Replies

Posted by Community Admin on 02-Jun-2015 00:00

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

Posted by Community Admin on 09-Jun-2015 00:00

Hi Setxi,

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

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed