Module with webRequest

Topics: Core, Customizing Orchard, General, Troubleshooting, Writing modules
Nov 28, 2012 at 2:39 PM

Hi,

I've built a module which presents a checkbox for each contentItem (only in the Admin UI)

I want to call a web request if the checkbox is checked when the admin saves/publishes his new contentItem.

My question is - where do I put my web request? Inside the Driver of the Content Part?

If so, is there a function responsible for the 'save' / 'publish' event?

Thanks

Developer
Nov 28, 2012 at 2:54 PM

You can put it in to a Handler... as that is where the publishing pipeline events can be wired up...

i.e.

OnPublished<SomePart>((context, part) => { FIRE WEB REQUEST!!! });

Dec 3, 2012 at 2:12 PM

Thanks :))