首页 > 电脑专区 > CMS教程 > 帝国cms >

帝国CMS网站sitemap制作方法

来源:互联网 2023-03-14 12:47:59 版权归原作者所有,如有侵权,请联系我们

本文实例讲述了帝国CMS网站sitemap制作方法。分享给大家供大家参考。具体实现方法如下:dvg办公区 - 实用经验教程分享!

增加自定义页面,文件名及存放目录:../../sitemap/sitemap.xml复制代码代码如下:?='?xml version="1.0" encoding="UTF-8"?>'?> urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> url> loc>https://www.jb51.net[!--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>https://www.jb51.net?=$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>https://www.jb51.net?=$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>https://www.jb51.net?=$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>https://www.jb51.net?=$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>https://www.jb51.net?=$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>https://www.jb51.net?=$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>https://www.jb51.net[!--classurl--]/loc> priority>0.6000/priority> /url>dvg办公区 - 实用经验教程分享!

希望本文所述对大家的帝国CMS建站有所帮助。dvg办公区 - 实用经验教程分享!

以上方法由办公区教程网编辑摘抄整理自互联网可供大家参考!dvg办公区 - 实用经验教程分享!


标签: 帝国CMSsitemap

办公区 Copyright © 2016-2023 www.bgqu.net. Some Rights Reserved. 备案号:湘ICP备2020019561号