I'm currently trying to figure out how to get the value of a field of a node in node.html.twig template. The field (machine_name: news) is linked to a taxonomy and multiple values can be selected. I see a lot of threads here on Drupal StackExchange - tried all the solutions, but not a single one fixes my problem.
I'm currently trying:
{{ node.field_news[0].value }}
But then nothing is printed. When I try:
{{ node.hasField('news') }}
... the value '1' is printed. So the field is available. I tried dumping the whole 'node' object using the Twig dump() method, but then I get a white-screen-of-dead due to memory restrictions.
Any idea's what is the correct way? I'm using Drupal 8.3.2
name
anddescription
are core base fields