ViewHelper Documentation
v:media.picture
Renders a picture element with different images/sources for specific media breakpoints
Example
<v:media.picture src="fileadmin/some-image.png" alt="Some Image">
<v:media.source media="(min-width: 1200px)" width="500c" height="500c" />
<v:media.source media="(min-width: 992px)" width="300c" height="300c" />
<v:media.source media="(min-width: 768px)" width="200c" height="200c" />
<v:media.source width="80c" height="80c" />
</v:media.picture>
Browser Support
To have the widest Browser-Support you should consider using a polyfill like: http://scottjehl.github.io/picturefill
Arguments
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.
src anySimpleType
Path to the image or FileReference.
treatIdAsReference boolean
When TRUE treat given src argument as sys_file_reference record.
alt string
Text for the alt attribute.
title string
Text for the title attribute.
class string
CSS class(es) to set.