Skip to main content
All CollectionsTechnical DocumentationCx-Script
CxScript Elements - cx:hyperlink
CxScript Elements - cx:hyperlink
Updated over 6 years ago

The cx:hyperlink element is used within templates to insert a link.

Example:

To insert an image of a candidate into a document:

<img src="<cx:hyperlink string='1' data='$employee.photoList.@first.content' type='$employee.photoList.@first.filePath.mimeTypeFromString'/>">

 

Attributes

The following table contains all attributes available with the cx:hyperlink element. Obligatory attributes are bold.

Remarks

  • The attribute photoList in the employee object is a list of CRAttachment objects that contain the tag "PhotoTag" and a file name ending at .gif, .jpg, or .jpeg

  • To check if at least 1 image is available use the following code:

    $employee.photoList.count > 0
    or
    $employee.photoList.@first <> nil

Note:
The generated link is only valid temporarily.

Did this answer your question?