The content type article has a field called field_kategorie. It should be output in the URL in the title of the node with.

node.html.twig doesn't work as expected.

<a href="{{ url }}" rel="bookmark">{{ field_kategorie }}{{ label }}</a>

How to do that?

  • It should be {{ content.field_kategorie }}
    – Kevin
    May 2, 2017 at 18:05
  • no, that doesn't work. field_kategorie is an taxonomy field. Is this important? May 2, 2017 at 18:37
  • Is the field enabled under Manage Display on the content type?
    – Kevin
    May 2, 2017 at 19:19
  • Yes. Dump{{... returns only "dump" whiteout content. May 2, 2017 at 19:52

1 Answer 1


{{ node.field_test.value }} works in node.html.twig for "normal" fields, not for taxonomy fields.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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