+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to subscribe to Content(NewsItems, Events, Blogs, etc) CRUD operations

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

2 posts, 1 answered
  1. Setxi
    Setxi avatar
    7 posts
    Registered:
    16 Mar 2015
    02 Jun 2015
    Link to this post

    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: http://docs.sitefinity.com/for-developers-work-with-events

     

    Googling I found this: http://www.sitefinity.com/developer-network/forums/general-discussions-/email-notification-about-new-comments but its not clear, and there is 3 questions(the lastest) wihout an anwser in this post.

     

    Best regards

  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    09 Jun 2015
    Link to this post
    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
     
    Answered
2 posts, 1 answered