I have a taxonomy page set up using taxonomy views. I added the page--taxonomy.html.twig template, but the output of {{name}} and {{content}} is an empty string. I also tried using the page--taxonomy--term.html.twig, but it doesn't work.

I tried {{ page['#title'] }} and it works fine, but the characters are encoded.

Please help.

  • Enable debugging drupal.org/docs/8/theming/twig/debugging-twig-templates and see which template is in use. – GiorgosK Aug 14 '18 at 11:35
  • my custom template page--taxonomy--term.html.twig is using, the issue is with variables only. Those are giving null on dump(). – user4026 Aug 14 '18 at 11:44
  • Check in your THEMENAME.theme if those values are overwritten in a preprocess function. – GiorgosK Aug 14 '18 at 14:48

Your Answer

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