{% for item in entry.teaserImage %}
{# Original #}
<img src="{{ item.url }}" width="{{ item.width }}" />
{# Custom Transform (Settings -> Assets -> Image Transforms) #}
<img src="{{ item.getUrl("myTransform") }}" width="{{ item.getWidth("myTransform") }}" />
{% endfor %}
or if only 1 value is expected:
{{ entry.teaserImage[0].getUrl("myTransform") }}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.