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.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntax protected MultiDocumentQuery GetRelatedDocuments(
string fieldName
)
Parameters
- fieldName
- Type: SystemString
The field name.
Return Value
Type:
MultiDocumentQueryA 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