Sitecore Content Tagging with Cortex and Custom Tags Structure
Module allows Content Authors to use built-in Sitecore Cortex Content Tagging feature with custom tags root item(s) and custom tag items structure.
This gives more flexibility, cause by default content tagging applies tags to items in standard _Semantics
field and stores the tags in item buckets, which are not easy to manage or reuse.
Module is flexible and works with different tags structure, including custom or SXA.
Modules solves some issues related with standard content tagging:
For SXA, Sitecore also offers its own custom taxonomy provider, which solves some of the problems listed above.
After the installation you need to configure the module by selecting your custom taxonomy structure in /sitecore/system/Modules/CustomTaggerSettings
item:
Afterwards your content authors can use built-in “Tag Item” command from ribbon.
By default module uses same configuration defined in /sitecore/system/Modules/CustomTaggerSettings
item for all sites.
To define different configurations for multi-site solutions, where e.g. tags are defined in different root items, add more CustomTaggerSettings
items and define site to settings mapping in configuration file:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentManagement">
<customTagger type="Sc.CustomTagger.Settings.Models.CustomTaggerSitesMappingsModel, Sc.CustomTagger.Settings">
<sitesMappings hint="raw:AddCustomTaggerSitesMappings">
<site name="website1" settingsItemPath="/sitecore/system/Modules/CustomTaggerSettings1"></site>
<site name="website2" settingsItemPath="/sitecore/system/Modules/CustomTaggerSettings2"></site>
</sitesMappings>
</customTagger>
</sitecore>
</configuration>
Sitecore SXA has its own Content Tags structure, to configure the module to work with SXA, create CustomTaggerSettings
with following settings:
To use the module you will need to:
{sitecore website root}\App_Config\Environment\Sitecore.ContentTagging.OpenCalais.config
with following content:
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentManagement">
<settings>
<setting name="Sitecore.ContentTagging.OpenCalais.CalaisAccessToken" value="{your-token-value}" ></setting>
</settings>
</sitecore>
</configuration>
publishUrl
to your Sitecore instance URL in publishsettings.targets
file.sourceFolderCustomTagger
variable to your local repository folder in zz.Sc.CustomTagger.Serialization.Settings.config
file.Sc.CustomTagger
and Sc.CustomTagger.Settings
projects from Visual Studio.Sc.CustomTagger.Serialization
project. This project contains Unicorn assemblies and configuration. Skip this step, if you already have Unicorn installed. Foundation.CustomTaggerSettings
project.Source code contains sample website, which can be used to test functionality of the module. To install it:
Sc.CustomTagger.SamplePageTags
project form Visual Studio.Project.SamplePageTags
project./sitecore/content/SampleTagsHome
and /sitecore/content/SampleTagsData
items.First version of this module was created during Sitecore Hackathon 2019 by:
Original code is available here.