.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../Includes.txt .. _admin-manual: Developer Manual ==================== The extension provides two Fluid ViewHelpers which can generate various image markups. They extend the original ```` and ```` ViewHelpers, so they can also be used for non-responsive images. In addition to the existing properties, both ViewHelpers support the following properties: srcset ~~~~~~ :aspect:`Variable type` Array|String :aspect:`Description` A list (either array or comma-separated string) of additional image sizes that should be generated for the image. Can be either image widths specified in pixels (e. g. 200 or 200w) or pixel density descriptors (e. g. 1x or 2x), but must not be a combination of both. :aspect:`Default value` NULL :aspect:`Mandatory` No Examples -------- :: sizes ~~~~~~ :aspect:`Variable type` String :aspect:`Description` Sizes query which tells the browser which of the image sizes should be used in the current environment. ``%1$d`` can be used as a placeholder for the calculated image width. :aspect:`Default value` (min-width: %1$dpx) %1$dpx, 100vw :aspect:`Mandatory` No Examples -------- :: breakpoints ^^^^^^^^^^^ :aspect:`Variable type` Array :aspect:`Description` An array of image breakpoints derived from the underlying responsive design. For each breakpoint, the following options can be set: - ``cropVariant``: The name of the corresponding cropVariant as defined in the TCA configuration of the FAL field. - ``media``: The media query that tells the browser when this breakpoint should be used. - ``srcset``: A list of image sizes that should be generated for this image breakpoint. - ``sizes``: Sizes query which tells the browser which of the image sizes should be used in the current environment. The result will always be a ```` tag. The provided array will be sorted by keys, so it is possible to control the order of the generated ```` tags. :aspect:`Default value` NULL :aspect:`Mandatory` No Examples -------- :: lazyload ^^^^^^^^^^^ :aspect:`Variable type` Boolean :aspect:`Description` If set to TRUE, the ViewHelper will generate markup which allows lazyloading of images with a JavaScript library of your choice. - ``src="..."`` will become ``data-src="..."`` - ``srcset="..."`` will become ``data-srcset="..."`` :aspect:`Default value` FALSE :aspect:`Mandatory` No Examples -------- ::