TreeHelper GetDocuments Method (String, String, String, Boolean, String, String, String, Int32, Boolean, Guid, String, Boolean, Int32, String)Kentico 8.1 API Reference
Selects tree nodes according to provided parameters, current view mode and returns them as dataset.

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
classNames
Type: OnlineSystem String
List of classNames to select separated by semicolon (e.g.: "cms.article;cms.product")
where
Type: OnlineSystem String
Where condition to use for the data selection
orderBy
Type: OnlineSystem String
Order by clause to use for the data selection
maxRelativeLevel
Type: OnlineSystem Int32
Maximal child level of the selected nodes
selectOnlyPublished
Type: OnlineSystem Boolean
Select only published nodes
relationshipWithNodeGuid
Type: OnlineSystem Guid
Select nodes that are related to the Node GUID
relationshipName
Type: OnlineSystem String
Relationship name
relatedNodeIsOnTheLeftSide
Type: OnlineSystem Boolean
Specify if the related node is located on the left side of the relationship
topN
Type: OnlineSystem Int32
Select only top N documents
columns
Type: OnlineSystem String
Columns to be selected. Columns definition must contain mandatory columns (NodeID, NodeLinkedNodeID, DocumentCulture)

Return Value

Type: TreeNodeDataSet
See Also