Image.pm


NAME

Communiware::DE::Image - Dynamic element Image


SYNOPSIS

   <:Image src=filename.gif item=someitem alt=@TITLE:>


DESCRIPTION

This dynamic element generates HTML <img> tag. It's parameters very close resemble parameters of the img tag with one important addition - parameter item, which denotes the Communiware item, which owns the picture. Note also that src parameter should contain only filename, not path. Path will be constructed automatically from communiware PIC_PREFIX item id.

If item id is not specified, then item, referenced by virtual page pictures would be used.


PARAMETERS

item
Id of item where file would be searched. By default, virtual page pictures

src
Filename of picture. Shouldn't contain directory separators. Note, if specified file doesn't exists, empty.gif from *pictures would be used.

If filename contains asterisk instead of extension, and there exists several files which satisfy this mask, newest one would be used.

width
If not specified, defaults to actual width of the picture

height
If not specified, defaults to actual heights of the picture

alt
If not specified, defults to empty string

border
If not specified, defaults to 0

substalt
If not specified, default to 0. If true, substitutes alt instead of empty.gif from *pictures. If alt is specified but is empty, substitutes `&nbsp;'

anything else
All other attributes which are possible in <img> tag also can be used. Parameter substitution is performed on their value. If they not specified, they wouldn't appear in the resulting tagm


Notes for Macromedia Flash files

For Macromedia Flash also may be used addition parameters:

quality
Quality of the Flash movie, default to high.

bgcolor
Background color of the Flash movie, defaults to #FFFFFF.

flashversion
Required Macromedia Flash version for this movie, defaults to 6,0,0,0

id
Attribute for accessing Flash object by DOM, if not specified defaults to filename (src parameter).

name
Attribute for accessing Flash embed object by DOM, if not specified defaults to id parameter.

16 октябрь 2007 13:44