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

如何使用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条)

报告相同问题?

悬赏问题

  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等