Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Code Block
titleSample Code

<cfproperty name="imgMugshot" type="string" hint="Mugshot." required="false" default="" ftlabel="Mugshot" fttype="image" ftimagewidth="200" ftdestination="/images/myprofile/imgmugshot" />
<cfproperty name="imgMugshotThumb" type="string" hint="Mugshot thumbnail." required="false" default="" ftlabel="Mugshot Thumb" fttype="image" ftimagewidth="80" ftimageheight="80" ftthumbnail="true" ftCreateFromSourceDefault="true" ftSourceField="imgMugshot" ftdestination="/images/myprofile/imgmugshotthumb" />