Hook up to News Publish/Unpublish event

Posted by Community Admin on 04-Aug-2018 12:26

Hook up to News Publish/Unpublish event

All Replies

Posted by Community Admin on 13-Sep-2012 00:00

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

Posted by Community Admin on 13-Sep-2012 00:00

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.

This thread is closed