I’ve a view to show a content material which have a picture discipline, and I have to show this picture as a background picture of a div so I can apply some CSS on it.
what I attempted to do is to rewrite Drupal Development Company output of this discipline utilizing twig to be like this:
<div class="page-image" type="background-image: url({{ field_image }});"> </div>
Drupal Development Company downside is that Drupal strips type attribute so Drupal Development Company output shall be like this:
<div class="page-image"> </div>
In D7 I used to repair this type of points by overriding Drupal Development Company template for Drupal Development Company particular discipline, however I could not determine what’s Drupal Development Company title of Drupal Development Company wanted template in D8. after I enabled twig debug it turned out that Drupal Development Company discipline is utilizing Drupal Development Company template file views-view-field.html.twig
which is Drupal Development Company default template for all fields in views, however I could not discover Drupal Development Company wanted template title for this particular discipline on this view, I attempted to rename it like in D7 to be views-view-field--page-image--field-image.html.twig
(Drupal Development Company view title is page_image) nevertheless it did not work out.
any options?