本文主要是介绍php网站制作帝国,帝国CMS网站sitemap制作方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
本文实例讲述了帝国CMS网站sitemap制作方法。分享给大家供大家参考。具体实现方法如下:
增加自定义页面,文件名及存放目录:../../sitemap/sitemap.xml
代码如下:='<?xml version="1.0" encoding="UTF-8"?>'?>
https://www.jb51.net[!--news.url--]
=date("Y-m-d");?>
daily
1.000
[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}]
if(emptyempty($bqr[wburl]))
{
$sccurl= $public_r[newsurl].$bqr[classpath];
} else {
$sccurl= $bqr[wburl];
}
?>
https://www.jb51.net=$sccurl?>/
0.6000
[/e:loop]
[listshowclass]'0',25,1,0[/listshowclass] 模板在后面
[e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}]
https://www.jb51.net=$bqsr[titleurl]?>
=date('Y-m-d',$bqr[newstime])?>
daily
0.8000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_shop order by newstime DESC",0,24,0}]
https://www.jb51.net=$bqsr[titleurl]?>
=date('Y-m-d',$bqr[newstime])?>
daily
0.8000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_movie order by newstime DESC",0,24,0}]
https://www.jb51.net=$bqsr[titleurl]?>
=date('Y-m-d',$bqr[newstime])?>
daily
0.8000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_baojia order by newstime DESC",0,24,0}]
https://www.jb51.net=$bqsr[titleurl]?>
=date('Y-m-d',$bqr[newstime])?>
daily
0.8000
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_download order by newstime DESC",0,24,0}]
https://www.jb51.net=$bqsr[titleurl]?>
=date('Y-m-d',$bqr[newstime])?>
daily
0.8000
[/e:loop]
循环栏目列表的标签模板:
代码如下:[listshowclass]'0',25,1,0[/listshowclass]
[!--empirenews.listtemp--]
[!--empirenews.listtemp--]
https://www.jb51.net[!--classurl--]
0.6000
希望本文所述对大家的帝国CMS建站有所帮助。
这篇关于php网站制作帝国,帝国CMS网站sitemap制作方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!