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

Created on 8 March 2023, over 1 year ago
Updated 1 April 2023, about 1 year 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 1 minute 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.69.0 2024