[TYPO3-mvc] Render responsive images like TS sourceCollection?
Chris Wolff - AERTiCKET AG
cwolff at aer.de
Mon May 26 14:33:39 CEST 2014
Hi Marc,
You could use the uri.image ViewHelper to get the accordingly sized image resources. This viewHelper returns the url which could be then included in your template.
Example (untested) FLUID:
<picture>
<source src="{f:uri.image(src: 'foo', image: [anySimpleType], width: 100, height: 200)}" media=" "/>
<source src="{f:uri.image(src: 'foo', image: [anySimpleType], width: 200, height: 400)}" media=""/>
</picture>
This should generate Image Resources for Every needed resoulution and output it as responstive picture element.
As css_styled Content is rendering responsive image there should also be an Typoscript Option Available if you interested in this you should rede
Regards chris
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Marc Wöhlken
Gesendet: Montag, 26. Mai 2014 14:17
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Render responsive images like TS sourceCollection?
Hi there!
Is there an API for rendering responsive images analog to the typoscript sourceCollection? The goal would be to create a fluid template which gets feed by pre prosessed image data renderd within my extbase extension.
Wrong idea?
Would it be possible to do the image rendering via typoscript and insert it into fluid? (aka wrong mailing list ;-))
CU
Marc
--
...........................................................
Marc Wöhlken TYPO3 certified integrator
Quadracom - Proffe & Wöhlken
Rembertistraße 32 WWW: http://www.quadracom.de
D-28203 Bremen E-Mail: woehlken at quadracom.de
______________ PGP-Key: http://pgp.quadracom.de
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list