dqqvravff05370501 2019-07-14 06:09
浏览 154
已采纳

如何使用taxonomy-term.html.twig主题分类术语drupal 8

I need to theming all term's pages using one template for all of them. I try to do it, and create taxonomy-term.html.twig, clear cache, but it does not work. What i mast do? Now i found this(https://drupal.stackexchange.com/questions/217850/how-to-make-page-html-twig-based-on-vocabulary), but it is for theming each term separately. I think i need the same code but one file for all terms.

  • 写回答

2条回答 默认 最新

  • dssjxvbv918586 2019-07-23 12:54
    关注

    Drupal 8 uses the Views module to render taxonomy terms by default.

    To get around this, simply disable the view named Taxonomy term (machine name: taxonomy_term).

    Once disabled, Drupal 8 will render each taxonomy term page using taxonomy-term.html.twig.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?