Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2017 at 15:07 UTC
Updated:
21 Apr 2023 at 14:28 UTC
Jump to comment: Most recent
Comments
Comment #2
Tourista commentedComment #3
mustanggb commentedComment #4
lendudeWhich twig templates did you try?
I think Views just uses the normal FieldFormatter for image fields, so you should be able to add some attributes in template_preprocess_image_formatter I would think. Did you try going that route?
Comment #6
Tourista commentedI used my own template to build a full page: page--article.html
I don't even know what is "template_preprocess_image_formatter" then no, I didn't try in this way!
Comment #15
smustgrave commentedClosing outdated as there hasn't been a follow in 6 years. If still a valid request please reopen with an updated issue summary following the issue template.