How to use image attributes like width and height in views-view-field.html.twig?

Created on 8 March 2023, almost 2 years ago
Updated 1 April 2023, almost 2 years ago

Hello drupal.org!

In views when results rewrites with custom text it's posible to use image atributes, like:

  • {{ field_imagefield__alt }} == Raw alt
  • {{ field_imagefield__title }} == Raw title
  • {{ field_imagefield__width }} == Raw width
  • {{ field_imagefield__height }} == Raw height

How to use them in views field template views-view-field.html.twig ?

💬 Support request
Status

Postponed: needs info

Version

9.5

Component
Views 

Last updated 2 days ago

Created by

🇺🇦Ukraine vasyok

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024