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
.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥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删除推荐的项目,支持注册表等