duankanjian4642 2014-05-12 07:07
浏览 13
已采纳

Ez根据页面类型发布不同的模板

Is it possible in EzPublish 5 to use a different template based on the page type you are currently on? I mean, I am 99,99% sure that this is possible, otherwise the CMS wouldn't be so useful ;) But the main question is: does anyone know how to do this?

If I go to mysite/products I would like to have the page_products.html.twig template, and if I go to mysite/retailers I would like to have the page_retailers.html.twig template, and so on, and so on.

Now this is probably fairly easy to achieve, but somehow I can't figure it out myself. Any clue anyone ?

  • 写回答

1条回答 默认 最新

  • duanpenpan5796 2014-05-12 09:22
    关注

    Try to read documentation about template matching.

    Simplest way is to make products and retailers folder and set different sections.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀
  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳