FreeCMS怎么动态访问模板?

来源:互联网 发布:无为县农村淘宝服务站 编辑:程序博客网 时间:2024/05/10 02:21

FreeCMS怎么动态访问模板?

原文地址:
http://javaz.cn/site/javaz/site_study/info/2015/31166.html​

项目地址:http://www.freeteam.cn/

FreeCMS商业版提供此功能。共有两种方式。

  1. 使用templetPro.do访问
${contextPath}templetPro.do?siteid=${site.id}&templetPath=index.htmlsiteid参数代表站点id。templetPath参数代表要动态访问此站点所用模板下的index.html模板,如传递/test/index.html,则代表访问所用模板下test文件夹下的index.html模板。
  1. 使用fhtml后缀访问
如访问/site/freecms/index.fhtml,系统会自动解析为${contextPath}templetPro.do?siteid=freecms站点id&templetPath=index.html。此方法不支持访问模板子文件夹下的模板,如/test/index.html。
0 0
原创粉丝点击