<wt:image/>

Description

Displays an image stored in the WT File Library. These tags are available within a tag: [wt:URI], [wt:Image Width], [wt:Image Height], [wt:Title], [wt:File Name], [wt:File Size], [wt:File Type], [wt:Width], [wt:Height], [wt:Extension]

Attributes

source the path or guid to the image in the WT database
width Specifies the maximum width the image should be resized to (the image's aspect ratio is maintained)
height Specities the maximum height the image should be resized to (the image's aspect ration is maintained)
class the class to apply to the image
style the style to apply to the image
tion the caption to be used for the image (if not specified, the Title attribute of the image is used)
align the alignment to be used by the image
[pathtype] set to "relative" to force a relative path

Examples

Display an image which is the attribute of a node

<wt:node type="General" source="header">
  <wt:image source="[wt:Image]"/>
</wt:node>

Resize the image to fit in a 100x100px area

<wt:node type="General" source="Content">
  <wt:image source="[wt:Image]" width="100" height="100"/>
</wt:node> 

Simple block image tag

<wt:node type="General" source="Content">
  <wt:image source="[wt:Image]" width="100" height="100">
    <img src="[wt:URI]" width="[wt:Image Width]" height="[wt:Image Height]"/>
  </wt:image>
</wt:node>