Click or drag to resize
TransformationHelperGetDocumentCssClass Method
Gets document CSS class comparing the current document node alias path.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax
C#
public string GetDocumentCssClass(
	string nodeAliasPath,
	string cssClass,
	string selectedCssClass
)

Parameters

nodeAliasPath
Type: SystemString
Node alias path
cssClass
Type: SystemString
CSS class
selectedCssClass
Type: SystemString
Selected CSS class

Return Value

Type: String
Returns selectedCssClass if given node alias path matches the current document node alias path. Otherwise returns cssClass.
See Also