Actions
Bug #83173
closedf:uri.image inline viewhelper doesn't work like normal viewhelper
Start date:
2017-11-30
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
typo3 fluid viewhelper
Complexity:
Is Regression:
Sprint Focus:
Description
in the section HeaderAssets
the normal f:uri.image viewhelper works with media queries, the inline viewhelper does not.
@ <f:section name="HeaderAssets">
<style>
<f:for each="{v:page.resources.fal(field: 'media')}" as="media" iteration="iteration">
section {
background-image: url('{f:uri.image(src:'{media.url}', width: '288', height:'106', cropVariant: 'test')}');
}
@media (min-width: 640px) {
section {
background-image: url('{f:uri.image(src:'{media.url}', width: '320', height:'126', cropVariant: 'test')}');
}
}
}
</f:for>
</style>
</f:section>@
in the @media (min-width: 640px) section there is no image src generated.
if i replace the inline viewhelper with:
<f:uri.image src="{media.url}" width="320" height="126" cropVariant="test" />
it works
Actions