Builds an HTML hyperlink element string and registers the reference into the Active Integrity Management (AIM) system.

Syntax

Smartsite SXML CopyCode image Copy Code
string html.link(locator url)
string html.link(locator url, string text)
string html.link(locator url, string text, string alternativeText)
string html.link(locator url, string text, string alternativeText, string attributes)
string html.link(locator url, string text, string alternativeText, string attributes, enum aim)
string html.link(locator url, string text, string alternativeText, string attributes, enum aim, enum aimOptions)

Parameters

Name Data Type Description
url Locator The URL/string to register.
text String The text to display within the link.
alternativeText String The alternative text to return if the link turns out to be invalid.
attributes String The extra HTML attributes for the link.
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
String An HTML hyperlink element string.

Expand image Remarks

Expand image AIM

Expand image Examples

SXML