resource.image ViewHelper <vhs:resource.image>

ViewHelper to output or assign a image from FAL.

Arguments

additionalAttributes

DataType

mixed

Required

false

Description

Additional tag attributes. They will be added directly to the resulting HTML tag.

data

DataType

mixed

Required

false

Description

Additional data-* attributes. They will each be added with a "data-" prefix.

aria

DataType

mixed

Required

false

Description

Additional aria-* attributes. They will each be added with a "aria-" prefix.

identifier

DataType

mixed

Required

false

Description

The FAL combined identifiers (either CSV, array or implementing Traversable).

categories

DataType

mixed

Required

false

Description

The sys_category records to select the resources from (either CSV, array or implementing Traversable).

treatIdAsUid

DataType

boolean

Required

false

Description

If TRUE, the identifier argument is treated as resource uids.

treatIdAsReference

DataType

boolean

Required

false

Description

If TRUE, the identifier argument is treated as reference uids and will be resolved to resources via sys_file_reference.

relative

DataType

boolean

Default

true

Required

false

Description

If FALSE resource URIs are rendered absolute. URIs in backend mode are always absolute.

width

DataType

string

Required

false

Description

Width of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.

height

DataType

string

Required

false

Description

Height of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.

minWidth

DataType

string

Required

false

Description

Minimum width of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.

minHeight

DataType

string

Required

false

Description

Minimum height of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.

maxWidth

DataType

string

Required

false

Description

Maximum width of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.

maxHeight

DataType

string

Required

false

Description

Maximum height of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.

graceful

DataType

boolean

Required

false

Description

Set to TRUE to ignore files that cannot be loaded. Default behavior is to throw an Exception.

class

DataType

string

Required

false

Description

CSS class(es) for this element

dir

DataType

string

Required

false

Description

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id

DataType

string

Required

false

Description

Unique (in this file) identifier for this HTML element.

lang

DataType

string

Required

false

Description

Language for this element. Use short names specified in RFC 1766

style

DataType

string

Required

false

Description

Individual CSS styles for this element

title

DataType

string

Required

false

Description

Tooltip text of element

accesskey

DataType

string

Required

false

Description

Keyboard shortcut to access this element

tabindex

DataType

integer

Required

false

Description

Specifies the tab order of this element

onclick

DataType

string

Required

false

Description

JavaScript evaluated for the onclick event

usemap

DataType

string

Required

false

Description

A hash-name reference to a map element with which to associate the image.

ismap

DataType

string

Required

false

Description

Specifies that its img element provides access to a server-side image map.

alt

DataType

string

Required

false

Description

Equivalent content for those who cannot process images or who have image loading disabled.

as

DataType

string

Required

false

Description

If specified, a template variable with this name containing the requested data will be inserted instead of returning it.