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

Initializing hooks to subscribe events to prepare an audit trail

Sitecore hooks provide you with an interface to invoke custom logic on system initialization before any HTTP web request is served. You can use hooks to subscribe to events dynamically, configure memory and health monitoring, switch MediaProviders and LinkProviders, interpret URLs, and much more.

In this recipe, you will learn how to use hooks to subscribe events to prepare an audit trail of different item operations such as create, delete, move, and others. You will also learn how to override MediaProvider using hooks.

How to do it…

We will first create an event handler class where we will create some event handling methods:

  1. In the SitecoreCookbook project, create an event handler ...
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