TreeHelper GetDocument Method Kentico 8.1 API Reference
Selects document according to provided parameters and current view mode.

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

Parameters

siteName
Type: OnlineSystem String
Site name
aliasPath
Type: OnlineSystem String
Path. It may contain % and _ as wild card characters for any number of unknown characters or one unknown character respectively (for MS SQL)
cultureCode
Type: OnlineSystem String
Culture code of the documents
combineWithDefaultCulture
Type: OnlineSystem Boolean
Specifies if return the default culture document when specified culture not found
className
Type: OnlineSystem String
Class name of the document
selectOnlyPublished
Type: OnlineSystem Boolean
Select only published nodes
checkPermissions (Optional)
Type: OnlineSystem Boolean
True if the permissions should be checked
user (Optional)
Type: CMS.Membership UserInfo
User info

Return Value

Type: TreeNode
See Also