Welcome,
I'm working with Hero slider and views to display slider from nodes in custom type. Where I am now, is:
- created node type with fields like title, content, picture and background picture,
- created views for dysplay this content, hide all fields, last one is background field, in this field i wrote rewrite twig code do dysplay all fields with some if function to choose prefered slide type and display content right way in every slide,
- what I need is make wrap around every
li
element with slide content, because views filter out markup, and I can't get slide with responsive background.. life would so much easier with that filter go away. - I work with views-view-field--slider.html.twig that is displayed correct from my template.
- I cant display my link to image for background in code:
<div style="background-image: url( {{ HERE IS MY PROBLEM }} )">{{ output -}}</div>
I feel lost with data = row[field.field_alias]
tried kint, dump and a lot of various combination of twig code.. looks like I am missing some basics or simple target code to this field. Help me..