A
A
Arthur2019-06-28 16:21:41
Drupal
Arthur, 2019-06-28 16:21:41

How to print field_image_teaser field value in twig?

d8 There is a news template - node.html.twig. How to display field_image_teaser field value? (url)
5d1613fb58b49520560230.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andead, 2019-06-28
@warexs

{{ file_url(node.field_image.entity.uri.value) }}

A
Arthur, 2019-07-01
@warexs

{{ file_url(node.field_image_teaser.entity.uri.value) }}
Replace field_image_teaser with your field name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question