Feature #57417

ImageViewHelper responsive Images

Added by Michel Georgy over 5 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-03-28
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

TYPO3 introduced the new responsive Images where you can define sourceCollection for Images. (srcset ...)

It would be nice if the image viewhelper would support this feature too.

Atm we use the cObject Viewhelper to achieve this, but imho the imageViewHelper should support that natively.


Related issues

Related to TYPO3 Core - Feature #48090: AbstractTagBasedViewHelper should have a remove attributes method. Rejected 2013-05-09
Related to TYPO3 Core - Feature #70965: Responsive Image Rendering in fluid_styled_content Closed 2015-10-23
Related to TYPO3 Core - Feature #27391: Allow multiple formats/resolutions for media-content New 2011-06-12
Related to TYPO3 Core - Story #75879: Add picture element to FSC Rejected 2016-04-23
Related to TYPO3 Core - Epic #77810: Improve (responsive) image handling New 2014-09-22

History

#1 Updated by Alexander Opitz about 5 years ago

  • Project changed from Fluid to TYPO3 Core
  • Category changed from Fluid: ViewHelpers to Fluid
  • Target version deleted (next-patchlevel)

#2 Updated by Frank Gerards almost 5 years ago

  • Target version set to next-patchlevel

I second that :).
How about enhancing the f:img viewhelper with a configuration attribute, which gets passed an array/json, syntax would be according to the typoscript-syntax.
We would then have to see how TS does the job on rendering and implement/extend that in the VH class...

#3 Updated by Claus Due almost 4 years ago

  • Complexity changed from easy to medium

https://github.com/FluidTYPO3/vhs/blob/development/Classes/Traits/SourceSetViewHelperTrait.php could be implemented as a core ViewHelper Trait (that, and others from VHS too). Until then, you can use the VHS package as a replacement.

(and I've changed the complexity from easy to medium because it's not just a matter of accepting multiple sources, as you can see from the trait).

#4 Updated by Mathias Schreiber almost 4 years ago

  • Target version deleted (next-patchlevel)

Also available in: Atom PDF