Adds a reference to the AIM references collection.

Syntax

Smartsite SXML CopyCode image Copy Code
aim.references.add(locator reference)
aim.references.add(locator reference, enum type)
aim.references.add(locator reference, enum type, enum aim)
aim.references.add(locator reference, enum type, enum aim, any originator)

Parameters

Name Data Type Description
reference Locator The reference.
type Enum The type of the AIM reference.
Enum values:
  • Unknown
    Unknown link type.
  • ItemToItem
    Internal link.
  • LocalFile
    LocalFile link.
  • Resource
    Resource link.
  • External
    External link.
  • FolderToItem
    Internal folder to item link.
  • FolderToFolder
    Internal folder to folder link.
  • ItemToFolder
    Internal item to folder link.
  • Translation
    Translation link.
  • Invalid
    Invalid link.
  • Softlink
    Soft link.
  • Spiderable
    Spiderable link.
  • DatabaseTable
    Database table.
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.
originator Any The originator of the reference.

Return Value

None.

Expand image Example

SXML