0

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!

0

this does get the value

{{ view.field.field_my_field.value(view.result[0]) }}
1
  • Thanks, but this is´nt working. I need the view.result (0-3). – agentur_be Feb 19 '18 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.