[TYPO3-mvc] Render responsive images like TS sourceCollection?
Philipp Wrann
philippwrann at gmail.com
Wed May 28 08:18:50 CEST 2014
I would do this in a viewhelper
Extend the original image viewhelper and add a new option sourceset
if true, load a register of configurations and add the attributes.
How the image generation works should be clear when browsing the image-viewhelper code.
i think there should not be a src attribute in the default img tag, the fallback should be dealt with in the noscript section. Just insert the correct src in your DOM postprocess.
Also i would render the biggest src first and take that image as template for the smaller ones, in case some uploads a huge file you could save some parsing time on first-hits.
But since that is a core feature of tt_content i would consider using the according typoscript for that purpose.
More information about the TYPO3-project-typo3v4mvc
mailing list