Skip to main content
updated the answer, since the linked issue has been fixed and the change committed
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

So I've found out the answer with the help of Clive.

Getting the image URI in Twiga template file is done using node.field_image.0.entity.uri.value

Getting the full URL for the image can be done using. Provide a Twig extension for file_create_url(), closed as fixed on January, 2015, made possible to use file_create_urlfile_url(node.field_image.0.entity.uri.value)

Doing this in Twig isn't possible yet but they are working on it -> see herea template file.

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

So I've found out the answer with the help of Clive.

Getting the image URI in Twig is done using node.field_image.0.entity.uri.value

Getting the full URL for the image can be done using file_create_url(node.field_image.0.entity.uri.value)

Doing this in Twig isn't possible yet but they are working on it -> see here

So I've found out the answer with the help of Clive.

Getting the image URI in a template file is done using node.field_image.0.entity.uri.value. Provide a Twig extension for file_create_url(), closed as fixed on January, 2015, made possible to use file_url() in a template file.

{{ file_url(node.field_image.0.entity.uri.value) }}
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

So I've found out the answer with the help of CliveClive.

Getting the image URI in Twig is done using node.field_image.0.entity.uri.value

Getting the full URL for the image can be done using file_create_url(node.field_image.0.entity.uri.value)

Doing this in Twig isn't possible yet but they are working on it -> see here

So I've found out the answer with the help of Clive.

Getting the image URI in Twig is done using node.field_image.0.entity.uri.value

Getting the full URL for the image can be done using file_create_url(node.field_image.0.entity.uri.value)

Doing this in Twig isn't possible yet but they are working on it -> see here

So I've found out the answer with the help of Clive.

Getting the image URI in Twig is done using node.field_image.0.entity.uri.value

Getting the full URL for the image can be done using file_create_url(node.field_image.0.entity.uri.value)

Doing this in Twig isn't possible yet but they are working on it -> see here

Source Link
Rias
  • 733
  • 1
  • 6
  • 6

So I've found out the answer with the help of Clive.

Getting the image URI in Twig is done using node.field_image.0.entity.uri.value

Getting the full URL for the image can be done using file_create_url(node.field_image.0.entity.uri.value)

Doing this in Twig isn't possible yet but they are working on it -> see here