PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Gets a child item relative to the given root item by title.

Syntax

Smartsite SXML CopyCode image Copy Code
locator cms.hierarchy.getdescendantbytitle(locator root, string titlePath)
locator cms.hierarchy.getdescendantbytitle(locator root, string titlePath, enum aim)
locator cms.hierarchy.getdescendantbytitle(locator root, string titlePath, enum aim, enum aimOptions)
locator cms.hierarchy.getdescendantbytitle(string titlePath)

Parameters

Name Data Type Description
root Locator The root item to start looking under (default is parent of current item).
titlePath String The path consisting of titles separated by a slash ('/').
aim Enum The AIM registration type.
Enum values:
  • Off
    No AIM scan.
  • Normal
    Automatically determine the source, meaning that relations are added to the actual rendered page being rendered.
  • Autonomous
    Forces Autonomous registration of the relation as a relation of the source item itself, even if the source is a Translation or a RenderTemplate.
aimOptions Enum The aim options.
Enum values:
  • Auto
    Automatic determine AIM link type.
  • Softlink
    Soft link.
  • Hardlink
    Hard link.

Return Value

Data Type Description
Locator Locator
SXML