sitegeist/sms-responsive-images

[BUG] Attributes loading and fileExtension are not in Typo3 v.9.5

rupasix opened this issue · 1 comments

Tested on:
Typo3 v9.5.31
EXT v.2.1.0
Hello! You assumed that attributes "loading" and "fileExtension" exists in "\TYPO3\CMS\Fluid\ViewHelpers\MediaViewHelper" but in typo3 v9 they don't. Viewhelper with new attributes is fired here https://github.com/sitegeist/sms-responsive-images/blob/master/Resources/Private/Extensions/fluid_styled_content/Partials/Media/Rendering/Image.html and it creates error:

Oops, an error occurred!
Undeclared arguments passed to ViewHelper Sitegeist\ResponsiveImages\ViewHelpers\MediaViewHelper: fileExtension, loading. Valid arguments are: additionalAttributes, data, class, dir, id, lang, style, title, accesskey, tabindex, onclick, alt, file, additionalConfig, width, height, cropVariant, srcset, sizes, breakpoints, lazyload, placeholderSize, placeholderInline, ignoreFileExtensions

Related commits:
a74d85f
1a9a46c

s2b commented

This should be fixed with v2.1.1 of the extension.