Documentation Center

Event Handler

You can create an Event Handler and extend the Content Manager Event System with it. Your Event Handler responds to specific types of events that occur in Content Manager, such as deleting an item or saving changes, for example, as captured by the Event System. You include the .NET assembly containing your Event Handler in an Add-on package and configure its location in the manifest file. The extension point for this is called CMEventHandler.

Each Extension has one custom property, configured in its properties section in the manifest file, manifest.json. The property is called assemblyFileSource and it is set to the path to, and name of, the .NET assembly (.dll file) containing your Event Handler. The Event Handler must be a class that extends the Tridion.ContentManager.Extensibility.TcmExtension class.

Here are the contents of an Event Handler Extension as configured in the manifest file:
{
  "name":"MyEventHandler",
  "type": "CMEventHandler",
  "properties": {
    "assemblyFileSource": "CM\\MyEventHandler.dll"
  }
}

This configuration tells the product to look for a .NET assembly by the name of MyEventHandler.dll in the CM\ folder of the ZIP file.