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

Forums / Developing with Sitefinity / Hook up to News Publish/Unpublish event

Hook up to News Publish/Unpublish event

2 posts, 0 answered
  1. National Audiovisual Institute
    National Audiovisual Institute avatar
    4 posts
    Registered:
    29 Mar 2011
    13 Sep 2012
    Link to this post
    Hello.

    I wonder if there is a way to hook up to news publish and unpublish events. I need to run some custom code after news was published and unpublished. I need to feed the news information to external application so knowing what was published/unpublished is quite important..

    Does anyone know how to do it?

    Best regards
    Thomas
  2. National Audiovisual Institute
    National Audiovisual Institute avatar
    4 posts
    Registered:
    29 Mar 2011
    13 Sep 2012
    Link to this post
    I've found a way to react to "publish" events. Using this article  http://www.sitefinity.com/devnet/kb/sitefinity-4-x/overwriting-the-default-lifecycledecorator-for-a-content-manager.aspx
    I was able to attach some  additional code on news publish. Now if anyone could tell me how to do the same for unpublish and delete events.
2 posts, 0 answered