I want to render responsive images with Typo3 7.6.2 LTS and fluid_styled content like this:
<picture>
<source srcset="path_to_small" media="(min-width: 768px) AND (max-width: 991px)">
<source srcset="path_to_big" media="(min-width: 1200px)">
<source srcset="path_to_middle" media="(min-width: 992px) AND (max-width: 1199px)">
<img src="path_to_picture">
</picture>
With Typo3 6.2 LTS I've used css_styled_content and I added following Typoscript for this:
tt_content.image.20.1.sourceCollection {
large.mediaQuery = (min-width: 1200px)
middle.maxW = 1200px
middle.mediaQuery = (min-width: 992px) AND (max-width: 1199px)
small.maxW = 992px
small.mediaQuery = (min-width: 768px) AND (max-width: 991px)
}
But this not working with the latest Typo3 version.
I want to edit the fluid_styled_content templates and used the viewhelper but there are no responsive images yet.
There are another possibility to solve this problem (without extra extension)?