.. include:: /Includes.rst.txt .. _typo3-backend-thumbnail: ========================================== thumbnail ViewHelper `` ========================================== ViewHelper for the backend which generates an :html:`` tag with the special URI to render thumbnails deferred. Examples ======== Default ------- :: Output:: alt set in image record Inline notation --------------- :: {be:thumbnail(image: file.resource, maxWidth: thumbnail.width, maxHeight: thumbnail.height)} Output:: alt set in image record .. _typo3-backend-thumbnail_arguments: Arguments ========= .. _thumbnail_additionalattributes: additionalAttributes -------------------- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Additional tag attributes. They will be added directly to the resulting HTML tag. .. _thumbnail_data: data ---- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Additional data-* attributes. They will each be added with a "data-" prefix. .. _thumbnail_aria: aria ---- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Additional aria-* attributes. They will each be added with a "aria-" prefix. .. _thumbnail_class: class ----- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` CSS class(es) for this element .. _thumbnail_dir: dir --- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left) .. _thumbnail_id: id -- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Unique (in this file) identifier for this HTML element. .. _thumbnail_lang: lang ---- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Language for this element. Use short names specified in RFC 1766 .. _thumbnail_style: style ----- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Individual CSS styles for this element .. _thumbnail_title: title ----- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Tooltip text of element .. _thumbnail_accesskey: accesskey --------- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Keyboard shortcut to access this element .. _thumbnail_tabindex: tabindex -------- :aspect:`DataType` integer :aspect:`Required` false :aspect:`Description` Specifies the tab order of this element .. _thumbnail_onclick: onclick ------- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` JavaScript evaluated for the onclick event .. _thumbnail_alt: alt --- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Specifies an alternate text for an image .. _thumbnail_src: src --- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` A path to a file, a combined FAL identifier or an uid (int). If $treatIdAsReference is set, the integer is considered the uid of the sys_file_reference record. If you already got a FAL object, consider using the $image parameter instead .. _thumbnail_treatidasreference: treatIdAsReference ------------------ :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Given src argument is a sys_file_reference record .. _thumbnail_image: image ----- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` A FAL object (\TYPO3\CMS\Core\Resource\File or \TYPO3\CMS\Core\Resource\FileReference) .. _thumbnail_crop: crop ---- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Overrule cropping of image (setting to FALSE disables the cropping set in FileReference) .. _thumbnail_cropvariant: cropVariant ----------- :aspect:`DataType` string :aspect:`Default` 'default' :aspect:`Required` false :aspect:`Description` Select a cropping variant, in case multiple croppings have been specified or stored in FileReference .. _thumbnail_width: width ----- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Width of the image. This can be a numeric value representing the fixed width of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options. .. _thumbnail_height: height ------ :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Height of the image. This can be a numeric value representing the fixed height of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options. .. _thumbnail_minwidth: minWidth -------- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Minimum width of the image .. _thumbnail_minheight: minHeight --------- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Minimum height of the image .. _thumbnail_maxwidth: maxWidth -------- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Maximum width of the image .. _thumbnail_maxheight: maxHeight --------- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Maximum height of the image .. _thumbnail_context: context ------- :aspect:`DataType` string :aspect:`Default` 'Image.Preview' :aspect:`Required` false :aspect:`Description` Context for image rendering