Issue Bug Closed

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

Markus Dübbert 11/30/17, 12:31 updated 12/19/17, 15:02

Description

in the section HeaderAssets

the normal f:uri.image viewhelper works with media queries, the inline viewhelper does not.

@ <f:section name="HeaderAssets"><br> <style><br /> <f:for each="{v:page.resources.fal(field: 'media')}" as="media" iteration="iteration"></p> <p>

section {
background-image: url(‘{f:uri.image(src:’{media.url}’, width: ‘288’, height:‘106’, cropVariant: ‘test’)}’);
}
</p> <p>
     @media (min-width: 640px) {
section {
background-image: url(‘{f:uri.image(src:’{media.url}’, width: ‘320’, height:‘126’, cropVariant: ‘test’)}’);
}
}
</p> <p>
    }
</p> <p>
</f:for>
</style>
</f:section>@
</p> <p>in the @media (min-width: 640px) section there is no image src generated.</p> <p>if i replace the inline viewhelper with:</p> <p><code>&lt;f:uri.image src=&quot;{media.url}&quot; width=&quot;320&quot; height=&quot;126&quot; cropVariant=&quot;test&quot; /&gt;</code></p> <p>it works</p></style></f:section>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.