Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
EzPublish 5 中是否可以根据您当前所在的页面类型使用不同的模板?我的意思是,我 99,99% 确信这是可能的,否则 CMS 就不会那么有用了 ;) 但主要问题是:有人知道怎么做吗?
如果我去 mysite/products 我想要 page_products.html.twig 模板,如果我去 mysite/retailers 我想要 page_retailers.html.twig 模板,以此类推。
现在这可能很容易实现,但不知何故我自己无法弄清楚。任何线索任何人?
尝试阅读有关模板匹配的文档。
最简单的方法是制作产品和零售商folder并设置不同的部分。
folder