LabelTemplates
Description
Runtime Templates for thumbnail labels
Syntax
String
Default
—
Context
Showcase plug-in node or HTTP query prefixed with
"showcase_"
FSI Showcase add- on replaces the specified templates in the thumbnail labels
(parameter "LabelContent") with the value specified in the image‘s configuration at
runtime. This is: any configuration value (specified in _default.xml, image.xml or by
HTTP Query) can be integrated into the thumbnail label. To do so, you need to:
a) Add a corresponding template to the "LabelContent" parameter value
b) Add the template to the "LabelTemplates" value
Each template needs to be entered as an XML node, while the node name is the
name of the full configuration parameter name like you would use the parameter in
the HTML query for FSI Viewer, e.g. <FPXWidth/> or <Showcase_Dir/>.
Thumbnail labels with runtime templates
<Plugin src="showcase">
...
<LabelContent><b><ImageIndex/>.
<ImageLabel
/></b><br/>Size:
<FPXWidth/> x <FPXHeight/> px</LabelContent>
<LabelTemplates value="FPXWidth,FPXHeight" />
...
</Plugin>
The resulting label with this configuration looks like this:
1. SomeImageName.tif
Size: 2048 x 1024 px
The two templates <ImageIndex/> and <ImageLabel /> are built- in templates
containing the numeric index of an image and the "label" attribute of the <image>
node of the image list.
11 FSI Showcase Add-on
NeptuneLabs - FSI Viewer
356