Adds an item reference to the AIM references collection.

Syntax

Smartsite SXML CopyCode image Copy Code
aim.relations.add(locator reference)
aim.relations.add(locator reference, enum aim, enum aimOptions)
aim.relations.add(locator reference, boolean hardLink)
aim.relations.add(locator reference, boolean hardLink, boolean autonomous)

Parameters

Name Data Type Description
reference Locator The reference.
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.
hardLink Boolean If set to true [hard link].
autonomous Boolean If set to true, the AIM registration is set to autonomous,
meaning it will only be registered if the statement resides in the rendered item, not a dependency such as a translation.

Return Value

None.
SXML