I would like to print an image URL with an image-style. This doesn't work, since I don't have a ".value"-value for the image: How to find image style URL from within twig template?
Is there anything different on field-templates?
My code in field--field-images.html:
{% for item in items %}
<img src="{{ item.content['#url'].uri }}">
{% endfor %}
This doesn't work (results in no filename since .value isn't available:
<img src="{{ item.content['#url'].uri.value | image_style('image_style') }}">
This crashes the page:
<img src="{{ item.content['#url'].uri | image_style('image_style') }}">
Thanks!
Admin > Structure > Content types > (your bundle) > Manage display