Click or drag to resize
TreeNodeGetRelatedDocuments Method
Retrieves a query that selects documents related to the current document with the relationship name given by specified field. Selects only documents of the same culture as the parent node.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
protected MultiDocumentQuery GetRelatedDocuments(
	string fieldName
)

Parameters

fieldName
Type: SystemString
The field name.

Return Value

Type: MultiDocumentQuery
A query that selects documents related to the current document with the relationship name given by specified field.
Remarks
This method returns an empty collection if the specified field does not exist or there are no associated related pages.
See Also