ContentTransformationFunctions IsInCategories Method Kentico 8.0 API Reference
Returns true if document is in one/all of selected categories.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

document
Type: OnlineSystem Object
Document to check
categories
Type: OnlineSystem String
Category names separated with a semicolon
allCategories
Type: OnlineSystem Boolean
If true, document must be in all of the selected categories.

Return Value

Type: OnlineBoolean
See Also