Documentation Center

Link

<Link> generates code for a link to a Component, Multimedia Component, or Page. <Link> is used in Dynamic Linking and is for TCDL only.

<Link>
LanguageCommand
TCDL<tcdl:Link>
Attributes:
Attribute nameDescription
typeThe type of link: Component, Binary or Page
originThe Content Manager URI (unique identifier) of the object (usually a Page) that is the source of the link. This attribute is only used, and always used, if type is set to Component.
destinationThe Content Manager URI of the object that the link points to
templateURIThe Content Manager URI of the Template that should not be used in the link target (only used if type is set to Component)
linkAttributesA free-form attribute whose contents are added as an attribute string to the resulting <a> element
textOnFailA Boolean: true if the link text should be displayed even if the link is dead, false if a dead link means removing the link text.
addAnchor

One of the following:

  • If type is set to Component: a Boolean, set to true if the link should include an anchor (also known as bookmark) pointing to a specific location on the published Web page, false if it should not.
  • If type is set to Page or Binary: a string indicating the actual anchor value to add to the URL.
VariantIdIf type is set to Binary and if the binary item being linked to has multiple variants (for example, a thumbnail image and a full-size high-resolution image), this optional attribute contains the unique identifier of the specific variant of the binary item to link to