Build a custom tagger for Sitecore Content Tagging
Version:
The tagger for Sitecore Content Tagging is responsible for tagging generic type T items. The tagger takes an item of type T and a collection of Tags objects as input, and then it assigns tags to the item.
This topic describes how to:
Implement a custom tagger
Implement a custom tagger
You must implement the generic T parameter, which is an object that you are going to tag, and an input parameter for a method. In the default scenario, T will be an Item.
To create a custom tagger:
-
Implement the generic
Sitecore.ContentTagging.Core.Providers.ITaggerinterface as in the following example:
Add the tagger provider to the configuration file
Add the tagger provider to the configuration file
To use your provider in a content tagging configuration:
-
Register the provider in the configuration file, as in the following example: