webCOMAND

#LINK

Syntax

#LINK(Publication Procedure[, Unique Identifier])

Parameters

  • Publication Procedure - Identifier of the Publication Procedure that produces the file to link to.
  • Unique Identifier - Optional value or field=value pair to uniquely identify the object in a Publication Procedure List to link to. If a single value is provided, it will be matched against the first Unique/Key field of the content type (or the OID if no Unique/Key field exists). If a field=value pair is given, the specified Unique/Key field of the corresponding content type will be matched to the specified value.

Description

#LINK outputs a URL referencing the file produced by the specified Publication Procedure.  If a Publication Procedure is based on a Publication List (a Publication List is selected for the List field), then a Unique Value must be specified to indicate the specific file in the list to link.

If the Publication List's Content Type has no Unique/Key fields, the Unique Field can be skipped and the OID used for the Unique Value. If a Content Type has only one Unique/Key field, the Unique Field can be skipped and the Unique/Key field value used.

A relative URL will be output by default, but #PATHTYPE can be used to produce absolute and rooted URLs.  #PATHTO and #PATHFROM can also be used to adjust the URL.

Related

#PATHTYPE, #PATHTO, and #PATHFROM.

Example

Create a relative link to the Home Web Page.

<a href="#LINK(WebPage, Home)">Home</a>