Skip to Content
Sitecore Cookbook for Developers
book

Sitecore Cookbook for Developers

by Yogesh Patel, Patel Y Sunderbhai
April 2016
Beginner content levelBeginner
338 pages
7h 38m
English
Packt Publishing
Content preview from Sitecore Cookbook for Developers

Creating a custom event handler to auto-publish on an item save

Event handlers play a big role in Sitecore to intercept events being executed. When any event is raised, it executes multiple event handlers sequentially, which is the same that a pipeline does with its processors. We can create our own event handler to apply custom logic to events such as an item getting created, saved, published, or deleted, and many others.

Consider a case where our application pulls a new press release from external resources. It creates and saves a news item in Sitecore, which should get published immediately without delay. Otherwise, consider a case where we have to export the details to an external data source immediately. In this recipe, you will learn how ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Azure for Developers

Hands-On Azure for Developers

Kamil Mrzygłód

Publisher Resources

ISBN: 9781784396527Supplemental Content