Click or drag to resize
StrandsCatalogPropertiesMapperGetItemCategory Method
Retrieves NodeClassID which will be used as category field in the Strands catalog feed. Returned value can be changed easily by using different implementation of IStrandsCatalogCategoryMapper. This can be done by calling ObjectFactory<IStrandsCatalogCategoryMapper>.SetDefaultObjectTypeTo<NameOfDifferentImplementation>() somewhere during Init phase.

Namespace: CMS.StrandsRecommender
Assembly: CMS.StrandsRecommender (in CMS.StrandsRecommender.dll) Version: 8.2.23
Syntax
C#
public static string GetItemCategory(
	TreeNode catalogItem
)

Parameters

catalogItem
Type: CMS.DocumentEngineTreeNode
Document

Return Value

Type: String
Category field specified by implementation of IStrandsCatalogCategoryMapper
Exceptions
ExceptionCondition
ArgumentNullExceptionParameter catalogItem is null
See Also