Project

General

Profile

Actions

Bug #83173

closed

f:uri.image inline viewhelper doesn't work like normal viewhelper

Added by Markus Dübbert almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
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')}');
}
}
}
&lt;/f:for&gt;
&lt;/style&gt;
&lt;/f:section&gt;@

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

Also available in: Atom PDF