Hello everyone,
I guess, that this has been asked before. So let me apologize first!
I am trying to create a custom template for a view I created. It's working so far and I am able to print some of the fields in the view, but not all of them. So here are my questions:
Frist question - Is this correct?
In views-view-fields--ViewsName.html.twig I print
{{ row._entity.field_NAME.value }}
to get the value of a field created in a custom post type. It's working, but I am not sure, if it's the correct way!?
Second Question - How to get those values?
I added the ID (formally known as NID?), the creation date and the author of the content to the view. But I am not able to print those values. I tryed many things, but I guess, I am doing it wrong. So how do I print ID, date and content author in views-view-fields--ViewsName.html.twig?
Let me thank you for your help. To be honest - I am not a coder, but a frontend dev, and I just don't know what I am doing wrong here...
Thanks again!