The cx:hyperlink element is used within templates to insert a link.
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'/>">
The following table contains all attributes available with the cx:hyperlink element. Obligatory attributes are bold.
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
$employee.photoList.@first <> nil
The generated link is only valid temporarily.