Build a custom content provider for Sitecore Cortex Content Tagging
The content provider for Sitecore CortexTM Content Tagging returns content ready for analysis based on the object that the user selected for tagging.
As input, the content provider takes objects of type T, where T is a generic type. For use with Sitecore, you will probably use the Item type for T.
As output, the content provider returns a TaggableContent object.
This topic describes how to:
Implement a custom content provider
Implement a custom content provider
To create your own content provider:
-
Implement the generic
Sitecore.ContentTagging.Core.Providers.IContentProviderinterface. -
Specify the generic
TSourceparameter, which is an input parameter for a method that you must implement. In the default scenario, the input will be an Item. -
Implement the content provider as illustrated in the following example:
Add the content provider to the configuration file
Add the content provider to the configuration file
Add the content provider to the configuration file as illustrated in the following example: