帝国cms自定义自动生成网站地图xml方法
自动生成网站地图xml
1、在帝国自定义的页面 顶部声明 格式
<?=''?>
2、调用首页地址
[!--news.url--]
1.000
3、循环栏目页地址
[e:loop={"select * from [!db.pre!]enewsclass order by myorder",0,24,0}]
0.6000
[/e:loop]
4、循环文章正文地址
[e:loop={"select * from [!db.pre!]ecms_news order by id desc",0,24,0}]
0.7000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_photo order by id desc",0,24,0}]
0.7000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_movie order by id desc",0,24,0}]
0.7000
[/e:loop]
!!!注意:如果站点根地址设置的是“/”,则必须添加站点地址。
帝国cms(默认)系统模型 | |
---|---|
序号 | 模型名称 |
1 | 新闻系统数据表 ( phome_ecms_news ) |
2 | 下载系统数据表 ( phome_ecms_download ) |
3 | 图片系统数据表 ( phome_ecms_photo ) |
4 | FLASH系统数据表 ( phome_ecms_flash ) |
5 | 电影系统数据表 ( phome_ecms_movie ) |
6 | 商城系统数据表 ( phome_ecms_shop ) |
7 | 文章系统数据表 ( phome_ecms_article ) |
8 | 分类信息数据表 ( phome_ecms_info ) |
如下示例是两个系统模型:既新闻模型和图片模型
<?=''?>
https://www.lovezheteng.com[!--news.url--]
1.000
[e:loop={"select * from [!db.pre!]enewsclass order by myorder",0,24,0}]
https://www.lovezheteng.com
0.6000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_news order by id desc",0,24,0}]
https://www.lovezheteng.com
0.7000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_photo order by id desc",0,24,0}]
https://www.lovezheteng.com
0.7000
[/e:loop]
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。