Click or drag to resize
TreeHelperGetDocument Method
Selects document according to provided parameters and current view mode.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static TreeNode GetDocument(
	string siteName,
	string aliasPath,
	string cultureCode,
	bool combineWithDefaultCulture,
	string className,
	bool selectOnlyPublished,
	bool checkPermissions = false,
	UserInfo user = null
)

Parameters

siteName
Type: SystemString
Site name
aliasPath
Type: SystemString
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: SystemString
Culture code of the documents
combineWithDefaultCulture
Type: SystemBoolean
Specifies if return the default culture document when specified culture not found
className
Type: SystemString
Class name of the document
selectOnlyPublished
Type: SystemBoolean
Select only published nodes
checkPermissions (Optional)
Type: SystemBoolean
True if the permissions should be checked
user (Optional)
Type: CMS.MembershipUserInfo
User info

Return Value

Type: TreeNode
See Also