Call an action on Button Click?

Topics: Core, Customizing Orchard, Writing modules
Nov 21, 2014 at 10:27 AM
Edited Nov 21, 2014 at 10:30 AM
I have button which appears along with save, publish and publish later buttons. The button appears just like the Save and Publish buttons appears. and it appears on every content item just like other buttons. I want to call the action of my own controller on this button click event. How to do this?

Or

How the Save and Publish later button gets bind with their actions?

Regards.
Nov 21, 2014 at 3:41 PM
Hi! I took a look at the Orchard.PublishLater module and it seems as the publishLater button comes with the PublishLater-part. It is a normal part in orchard and this part gets set to the correct place with placement.
 <Place Parts_PublishLater_Edit="Sidebar:25"/><!-- immediately following the contents module's Publish Now button -->