Usage
The extension ships three Fluid ViewHelpers:
- lim:widget.responsiveImage renders a
complete
<picture>element with media queries, source sets and optional WebP sources. - lim:image extends
<f:with source sets, WebP support and image server options.image> - lim:uri.image extends
<f:with image server options.uri. image>
Namespace
The namespace lim is registered globally in ext_. To get
IDE support, declare it on top of your template:
EXT:my_sitepackage/Resources/Private/Templates/Example.html
<html xmlns:lim="http://typo3.org/ns/LIA/LiaImageserver/ViewHelpers"
data-namespace-typo3-fluid="true">
Copied!
Best practice: source sets as variables
Inline notation is always possible in Fluid. The syntax gets messy as soon as
you deal with nested arrays, and source is a nested array. Store the
source sets in a Fluid variable with
<f: and pass the variable
to the ViewHelper. See Inline usage with a variable for an example.