npsPreviewImage

This element serves to display images from the CMS folder hierarchy in wizards. It calculates a preview URL, places it inside an img tag, and writes this tag to the output stream. Syntax:

<npsPreviewImage src="/source/path" alt="Alt text" title="Title" other="HTML attribute" />

The src tag attribute is obligatory - it serves to specify the path of the file in the CMS file hierarchy. If the tag attributes alt and title are not specified, their values are taken from the CMS image file. All other attributes are taken over unmodified. Example:

<npsPreviewImage src="/images/anImage" style="float:left;
margin: 1em; margin-right: 3em;"/>

This causes the following HTML text to be generated (if localhost is the name of the preview server):

<img title="playland" style="float:left; margin: 1em; margin-right: 3em;"
  src="http://localhost:8080/NPS/preview/TRIFORK531261944775/-/mastertemplate/3/images/anImage.gif;jsessionid=TRIFORK531261944775"
  alt="playland" />