帝国CMS网站sitemap制作方法
<p>本文实例讲述了帝国CMS网站sitemap制作方法。分享给大家供大家参考。具体实现方法如下:</p>
<p>
增加自定义页面,文件名及存放目录:../../sitemap/sitemap.xml<br>
</p>
<div>
代码如下:</div>
<div id="phpcode2">
<?='<?xml version="1.0" encoding="UTF-8"?>'?> <br>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <br>
<url> <br>
<loc>https://www.jb51.net[!--news.url--]</loc> <br>
<lastmod><?=date("Y-m-d");?></lastmod> <br>
<changefreq>daily</changefreq> <br>
<priority>1.000</priority> <br>
</url> <br>
enewsclass where bclassid=0 and showclass=0 and (classid<>52 and classid<>24) order by myorder',0,24,0}] <br>
<?php <br>
if(emptyempty($bqr)) <br>
{ <br>
$sccurl= $public_r.$bqr; <br>
} else { <br>
$sccurl= $bqr; <br>
} <br>
?> <br>
<url> <br>
<loc>https://www.jb51.net<?=$sccurl?>/</loc> <br>
<priority>0.6000</priority> <br>
</url> <br>
<br>
'0',25,1,0 模板在后面 <br>
ecms_news order by newstime DESC",0,24,0}] <br>
<url> <br>
<loc>https://www.jb51.net<?=$bqsr?></loc> <br>
<lastmod><?=date('Y-m-d',$bqr)?></lastmod> <br>
<changefreq>daily</changefreq> <br>
<priority>0.8000</priority> <br>
</url> <br>
<br>
ecms_shop order by newstime DESC",0,24,0}] <br>
<url> <br>
<loc>https://www.jb51.net<?=$bqsr?></loc> <br>
<lastmod><?=date('Y-m-d',$bqr)?></lastmod> <br>
<changefreq>daily</changefreq> <br>
<priority>0.8000</priority> <br>
</url> <br>
<br>
ecms_movie order by newstime DESC",0,24,0}] <br>
<url> <br>
<loc>https://www.jb51.net<?=$bqsr?></loc> <br>
<lastmod><?=date('Y-m-d',$bqr)?></lastmod> <br>
<changefreq>daily</changefreq> <br>
<priority>0.8000</priority> <br>
</url> <br>
<br>
ecms_baojia order by newstime DESC",0,24,0}] <br>
<url> <br>
<loc>https://www.jb51.net<?=$bqsr?></loc> <br>
<lastmod><?=date('Y-m-d',$bqr)?></lastmod> <br>
<changefreq>daily</changefreq> <br>
<priority>0.8000</priority> <br>
</url> <br>
<br>
ecms_download order by newstime DESC",0,24,0}] <br>
<url> <br>
<loc>https://www.jb51.net<?=$bqsr?></loc> <br>
<lastmod><?=date('Y-m-d',$bqr)?></lastmod> <br>
<changefreq>daily</changefreq> <br>
<priority>0.8000</priority> <br>
</url> <br>
<br>
</urlset></div>
<br><span>循环栏目列表的标签模板:</span><br><br><div>
代码如下:</div>
<div id="phpcode3">
'0',25,1,0 <br>
[!--empirenews.listtemp--] <br>
<!--list.var1--> <br>
[!--empirenews.listtemp--] <br>
<url> <br>
<loc>https://www.jb51.net[!--classurl--]</loc> <br>
<priority>0.6000</priority> <br>
</url></div>
<p>
</p>
<p>
希望本文所述对大家的帝国CMS建站有所帮助。</p>
頁:
[1]