Print rendered field in views-view.html.twig
I try to render a custom node field in a views-view.html.twig and it works, the only thing is that i get the machine name and not the formatted name. Please can somebody describe me what i am doing wrong?
I have tried several ways like:
{{ view.field.field_my_field.value(view.result[0]) | render }}
or
{{ view.field.field_my_field.value(view.result[0]) }}
Thanks for helping!
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.