Image
Form tools provide a variety of powerful image manipulation options.
Image field types need to be used in conjunction with a string data type. Formtools expects to store the path to the media asset in the database field.
Attribute |
Description |
Default Value |
---|---|---|
ftStyle |
Inline style attributes. |
(blank) |
ftDestination |
Location of image; relative to the web root. |
/images |
ftImageWidth |
Width to resize image to. |
(blank) |
ftImageHeight |
Height to resize image to. |
(blank) |
ftThumbnail |
Boolean toggle to pad out the image to the required width/height. |
false |
ftThumbnailBGColor |
Is this replaced by ftPadColor?? Background colour for thumbnail padding. Colour name or web hexadecimal colour code. |
white |
ftPadColor |
Background colour for thumbnail padding. Colour name or web hexadecimal colour code with double ## prefix. |
white |
ftThumbnailBevel |
Apply bevel edge to the thumbnail. |
false |
ftAutoGenerateType |
Options for autogenerating the image. |
FitInside or Pad |
ftCreateFromSourceDefault |
Generate image from source image. Requires ftSourceField to be specified. |
false |
ftSourceField |
Image property from which an autogenerated image should be derived. |
A nominated content type property. |
ftAllowUpload |
Boolean to allow an image to be uploaded for this image. Only relevant if the image can be autogenerated. |
Default; true. |