ViewHelper Documentation
v:resource.image
ViewHelper to output or assign a image from FAL
Arguments
- additionalAttributes
- data
- identifier
- categories
- treatIdAsUid
- treatIdAsReference
- relative
- width
- height
- minWidth
- minHeight
- maxWidth
- maxHeight
- class
- dir
- id
- lang
- style
- title
- accesskey
- tabindex
- onclick
- usemap
- ismap
- alt
- as
additionalAttributes anySimpleType
Additional tag attributes. They will be added directly to the resulting HTML tag.
data anySimpleType
Additional data-* attributes. They will each be added with a "data-" prefix.
identifier anySimpleType
The FAL combined identifiers (either CSV, array or implementing Traversable).
categories anySimpleType
The sys_category records to select the resources from (either CSV, array or implementing Traversable).
treatIdAsUid boolean
If TRUE, the identifier argument is treated as resource uids.
treatIdAsReference boolean
If TRUE, the identifier argument is treated as reference uids and will be resolved to resources via sys_file_reference.
relative boolean
If FALSE resource URIs are rendered absolute. URIs in backend mode are always absolute.
width string
Width of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.
height string
Height of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.
minWidth string
Minimum width of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.
minHeight string
Minimum height of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.
maxWidth string
Maximum width of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.
maxHeight string
Maximum height of the image. Numeric value in pixels or simple calculations. See imgResource.width for possible options.
class string
CSS class(es) for this element
dir string
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)
id string
Unique (in this file) identifier for this HTML element.
lang string
Language for this element. Use short names specified in RFC 1766
style string
Individual CSS styles for this element
title string
Tooltip text of element
accesskey string
Keyboard shortcut to access this element
tabindex integer
Specifies the tab order of this element
onclick string
JavaScript evaluated for the onclick event
usemap string
A hash-name reference to a map element with which to associate the image.
ismap string
Specifies that its img element provides access to a server-side image map.
alt string
Equivalent content for those who cannot process images or who have image loading disabled.
as string
If specified, a template variable with this name containing the requested data will be inserted instead of returning it.