Hook events on Content Item creation

Topics: Customizing Orchard, Writing modules
Sep 19, 2013 at 1:39 AM
Edited Sep 19, 2013 at 1:47 AM
Can we hook events and run functions/methods upon creation of a specific type of Content Item?

I just saw the Rules module (I'm on 1.6) which seems to achieve this, my next question would be, how do we add Rule Actions? Is there any good documentation out?

I want to know if someone has done already done it before I dig Orchard for it's implementation.
Sep 19, 2013 at 9:07 AM
You create custom rule actions by implementing IActionProvider (defined in Orchard.Rules).
I don't know if there are any articles about this, but if you look for existing implementations it should be fairly self-explanatory.

Note: Orchard.Rules has been deprecated as of 1.7 in favor of the new & shiny Workflows module.