帝国CMS教程网站sitemap
发布:smiling 来源: PHP粉丝网 添加日期:2014-11-22 09:33:49 浏览: 评论:0
增加自定义页面,文件名及存放目录:../../sitemap/sitemap.xml
- <?='<?xml version="1.0" encoding="UTF-8"?>'?>
 - <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 - <url>
 - <loc>http://www.phpfensi.com[!--news.url--]</loc>
 - <lastmod><?=date("Y-m-d");?></lastmod>
 - <changefreq>daily</changefreq>
 - <priority>1.000</priority>
 - </url>
 - [e:loop={'select classid,classname,classpath,wburl from [!db.pre!]enewsclass where bclassid=0 and showclass=0 and (classid<>52 and classid<>24) order by myorder',0,24,0}]
 - <?php
 - if(emptyempty($bqr[wburl]))
 - {
 - $sccurl= $public_r[newsurl].$bqr[classpath];
 - } else {
 - $sccurl= $bqr[wburl];
 - }
 - ?>
 - <url>
 - <loc>http://www.phpfensi.com<?=$sccurl?>/</loc>
 - <priority>0.6000</priority>
 - </url>
 - [/e:loop]
 - [listshowclass]'0',25,1,0[/listshowclass] 模板在后面
 - [e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}]
 - <url>
 - <loc>http://www.phpfensi.com<?=$bqsr[titleurl]?></loc>
 - <lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
 - <changefreq>daily</changefreq>
 - <priority>0.8000</priority>
 - </url>
 - [/e:loop]
 - [e:loop={"select * from [!db.pre!]ecms_shop order by newstime DESC",0,24,0}]
 - <url>
 - <loc>http://www.phpfensi.com<?=$bqsr[titleurl]?></loc>
 - <lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
 - <changefreq>daily</changefreq>
 - <priority>0.8000</priority>
 - </url>
 - [/e:loop]
 - [e:loop={"select * from [!db.pre!]ecms_movie order by newstime DESC",0,24,0}]
 - <url>
 - <loc>http://www.phpfensi.com<?=$bqsr[titleurl]?></loc>
 - <lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
 - <changefreq>daily</changefreq>
 - <priority>0.8000</priority>
 - </url>
 - [/e:loop]
 - [e:loop={"select * from [!db.pre!]ecms_baojia order by newstime DESC",0,24,0}]
 - <url>
 - <loc>http://www.phpfensi.com<?=$bqsr[titleurl]?></loc>
 - <lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
 - <changefreq>daily</changefreq>
 - <priority>0.8000</priority>
 - </url>
 - [/e:loop]
 - [e:loop={"select * from [!db.pre!]ecms_download order by newstime DESC",0,24,0}]
 - <url>
 - <loc>http://www.phpfensi.com<?=$bqsr[titleurl]?></loc>
 - <lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
 - <changefreq>daily</changefreq>
 - <priority>0.8000</priority>
 - </url>
 - [/e:loop]
 - </urlset>
 
循环栏目列表的标签模板:
- [listshowclass]'0',25,1,0[/listshowclass]
 - [!--empirenews.listtemp--]
 - <!--list.var1-->
 - [!--empirenews.listtemp--]
 - <url>
 - <loc>http://www.phpfensi.com[!--classurl--]</loc>
 - <priority>0.6000</priority>
 - </url>
 
Tags: 帝国CMS 网站sitemap
相关文章
- ·帝国cms怎么加上转播功能(2013-11-15)
 - ·帝国cms:修改提示框的样式以及跳转时间(2013-11-15)
 - ·帝国cms新手教程帝国cms模板常用技巧总结分享(2013-11-15)
 - ·帝国CMS移站方法 8步就搞定小方法(2013-11-15)
 - ·帝国CMS风格样式方法(2013-11-15)
 - ·帝国cms 解决后台登录次数不得超过5次限制的方法(2014-01-09)
 - ·帝国cms超级管理员设置的一些问题(2014-01-09)
 - ·帝国cms常用变量大全(2014-03-24)
 - ·帝国cms7.0动态列表页面分页显示个数调整(2014-03-24)
 - ·帝国CMS系统目录结构介绍 文件夹内容作用(2014-03-24)
 - ·帝国cms 解决后台登录次数不得超过5次限制的方法(2014-03-24)
 - ·帝国cms7.0如何在后台评论表1中显示自定义评论字段的内容(2014-03-26)
 - ·帝国CMS顶级栏目如何调用所有顶级栏目(2014-03-26)
 - ·关于帝国CMS栏目自定义字段函数 字段长度截取怎么写(2014-03-26)
 - ·帝国cms灵动标签调用上一篇、下一篇(2014-03-27)
 - ·帝国CMS当前位置[--[!--newsnav--]修改“首页”两个字(2014-03-27)
 
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
 - PHP新手上路(一)(7)
 - 惹恼程序员的十件事(5)
 - PHP邮件发送例子,已测试成功(5)
 - 致初学者:PHP比ASP优秀的七个理由(4)
 - PHP会被淘汰吗?(4)
 - PHP新手上路(四)(4)
 - 如何去学习PHP?(2)
 - 简单入门级php分页代码(2)
 - php中邮箱email 电话等格式的验证(2)
 
