本电子书由站长百科(www.zzbaike.com)教程组制作
出处:站长百科
原文地址:http://www.zzbaike.com/wiki/We7_CMS/模板地图工作原理
本电子书整理自站长百科 We7_CMS/模板地图工作原理
词条,查看内容请访问网站。
We7CMS 模板地图工作原理详解
出处:站长百科
原文地址:http://www.zzbaike.com/wiki/We7_CMS/模板地图工作原理
本电子书整理站长百科We7_CMS/模板地图工作原理词条,查看内容请访问网站。
在站点文件夹中 _skins下,可以找到 templates.map、we7.map(模板组名
称.map)。这两个文件就是We7 CMS的模板地图文件,用来实现模板与url的映射
关系。
打开 templates.map 分析一下:
<?xml version="1.0" encoding="utf-8"?>
<items>
<item url="/home" template="default.ascx" />
<item url="/cp/we7/detail" template="product_content.ascx" />
<item url="/cp/we7/" template="product_list.ascx" />
<item url="/down/rjxz/" template="down_list.ascx" />
<item url="/down/rjxz/detail" template="down_conten.ascx" />
<item url="/*/" template="channel.ascx" />
<item url="/*/detail" template="content.ascx" />
<item url="/*/search" template="search.ascx" />
<item url="/mx/yrjj/" template="yrjj_list.ascx" />
<item url="/mx/yrjj/detail" template="yrjj_content.ascx" />
<item url="/register" template="Registration.ascx" />
评论0