I want to take the NID field and display is as the row ID in a Views table. (I can then use that ID as an anchor to jump to the correct row in the table.)
However, I cannot for the life of me, find a way to ‘print’ the NID value in the views-view-table.html.twig template (I’ve changed the template name to match my view).
In a views-view-unformatted.html.twig template I’ve used the following (which works perfectly):
{{row.content['#row']._entity.nid[0].value}}
But that doesn’t work in the table template.
Finding the correct syntax to print fields in different templates seems to be a mystery.
Thanks in advance for any help you can give.