Check whether a content item can be published

Topics: Customizing Orchard, Writing modules
Apr 3, 2012 at 6:23 AM

I want to write some rule whether a content item can be published or not. I tried to override the Publishing method in the handler and throws an exception but it doesn't work.

Right now i'm using the content manager in the handler to unpublished the published content item if it doesn't met the criteria. Not sure that's the best way.