ThumbnailViewHelper extends ImageViewHelper

ViewHelper for the backend which generates an :html:`<img>` tag with the special URI to render thumbnails deferred.

Examples

Default

::

<be:thumbnail image="{file.resource}" width="{thumbnail.width}" height="{thumbnail.height}" />

Output::

<img src="/typo3/thumbnails?token=&parameters={"fileId":1,"configuration":{"_context":"Image.Preview","maxWidth":64,"maxHeight":64}}&hmac=" width="64" height="64" alt="alt set in image record" title="title set in image record"/>

Inline notation

::

{be:thumbnail(image: file.resource, maxWidth: thumbnail.width, maxHeight: thumbnail.height)}

Output::

<img src="/typo3/thumbnails?token=&parameters={"fileId":1,"configuration":{"_context":"Image.Preview","maxWidth":64,"maxHeight":64}}&hmac=" width="64" height="64" alt="alt set in image record" title="title set in image record"/>

Table of Contents

Properties

$imageService  : ImageService
$tagName  : string

Methods

__construct()  : mixed
initializeArguments()  : mixed
Initialize arguments.
render()  : string
Resizes a given image (if required) and renders the respective img tag

Properties

Methods

initializeArguments()

Initialize arguments.

public initializeArguments() : mixed

        
On this page

Search results