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.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报