首页 > 代码库 > FreeCMS怎么动态訪问模板?
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.html
siteid參数代表网站id。
templetPath參数代表要动态訪问此网站所用模板下的index.html模板。如传递/test/index.html,则代表訪问所用模板下test目录下的index.html模板。
2.使用fhtml后缀訪问
如訪问/site/freecms/index.fhtml,系统会自己主动解析为${contextPath}templetPro.do?
siteid=freecms网站id&templetPath=index.html。
此方法不支持訪问模板子目录下的模板,如/test/index.html。
FreeCMS怎么动态訪问模板?
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。