donglulong0877 2016-06-28 05:08
浏览 47
已采纳

Bolt CMS Static html页面获得404

recently i have started to use Bolt CMS. i have made a theme with Angular JS but i wanted to use some static pages. as they mentioned in their Doc https://docs.bolt.cm/3.0/templates/templates-routes#automatic-template-selection i have added my link to routing.yml

Example:

oldpages:
  path:           /applications/forms/chakka/ng/templates/core.html
  defaults:       { _controller: 'Bolt\Controllers\Frontend::record', 'contenttypeslug': 'page' }
  requirements:
    slug:       '[a-z0-9-_]+'

but i get an

Exception --> Symfony \ Component \ HttpKernel \ Exception \ HttpException

Page page/ not found.

I am really new to bolt CMS. anyone knows why ?

Thanks in advance !

  • 写回答

1条回答 默认 最新

  • donglvlao8367 2016-06-28 06:19
    关注

    I think what you want is the template binding:

    templatebinding:
        path: /mytemplate
        defaults: { _controller: 'Bolt\Controllers\Frontend::template', template: 'mytemplate' }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料