蝶舞瑞儿 發表於 2023-8-12 00:00:00

帝国CMS网站sitemap制作方法

<p>
本文实例讲述了帝国CMS网站sitemap制作方法。分享给大家供大家参考。具体实现方法如下:</p>
<p>
增加自定义页面,文件名及存放目录:../../sitemap/sitemap.xml<br>
 </p>
<div>

代码如下:</div>
<div id="phpcode2">
&lt;?='&lt;?xml version="1.0" encoding="UTF-8"?&gt;'?&gt; <br>
&lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt; <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net[!--news.url--]&lt;/loc&gt; <br>
&lt;lastmod&gt;&lt;?=date("Y-m-d");?&gt;&lt;/lastmod&gt; <br>
&lt;changefreq&gt;daily&lt;/changefreq&gt; <br>
&lt;priority&gt;1.000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
enewsclass where bclassid=0 and showclass=0 and (classid&lt;&gt;52 and classid&lt;&gt;24) order by myorder',0,24,0}] <br>
&lt;?php <br>
if(emptyempty($bqr)) <br>
{ <br>
$sccurl= $public_r.$bqr; <br>
} else { <br>
$sccurl= $bqr; <br>
} <br>
?&gt; <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net&lt;?=$sccurl?&gt;/&lt;/loc&gt; <br>
&lt;priority&gt;0.6000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
 <br>
'0',25,1,0 模板在后面 <br>
ecms_news order by newstime DESC",0,24,0}] <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net&lt;?=$bqsr?&gt;&lt;/loc&gt; <br>
&lt;lastmod&gt;&lt;?=date('Y-m-d',$bqr)?&gt;&lt;/lastmod&gt; <br>
&lt;changefreq&gt;daily&lt;/changefreq&gt; <br>
&lt;priority&gt;0.8000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
 <br>
ecms_shop order by newstime DESC",0,24,0}] <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net&lt;?=$bqsr?&gt;&lt;/loc&gt; <br>
&lt;lastmod&gt;&lt;?=date('Y-m-d',$bqr)?&gt;&lt;/lastmod&gt; <br>
&lt;changefreq&gt;daily&lt;/changefreq&gt; <br>
&lt;priority&gt;0.8000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
 <br>
ecms_movie order by newstime DESC",0,24,0}] <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net&lt;?=$bqsr?&gt;&lt;/loc&gt; <br>
&lt;lastmod&gt;&lt;?=date('Y-m-d',$bqr)?&gt;&lt;/lastmod&gt; <br>
&lt;changefreq&gt;daily&lt;/changefreq&gt; <br>
&lt;priority&gt;0.8000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
 <br>
ecms_baojia order by newstime DESC",0,24,0}] <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net&lt;?=$bqsr?&gt;&lt;/loc&gt; <br>
&lt;lastmod&gt;&lt;?=date('Y-m-d',$bqr)?&gt;&lt;/lastmod&gt; <br>
&lt;changefreq&gt;daily&lt;/changefreq&gt; <br>
&lt;priority&gt;0.8000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
 <br>
ecms_download order by newstime DESC",0,24,0}] <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net&lt;?=$bqsr?&gt;&lt;/loc&gt; <br>
&lt;lastmod&gt;&lt;?=date('Y-m-d',$bqr)?&gt;&lt;/lastmod&gt; <br>
&lt;changefreq&gt;daily&lt;/changefreq&gt; <br>
&lt;priority&gt;0.8000&lt;/priority&gt; <br>
&lt;/url&gt; <br>
 <br>
&lt;/urlset&gt;</div>
<br><span>循环栏目列表的标签模板:</span><br><br><div>

代码如下:</div>
<div id="phpcode3">
'0',25,1,0 <br>
[!--empirenews.listtemp--] <br>
&lt;!--list.var1--&gt; <br>
[!--empirenews.listtemp--] <br>
&lt;url&gt; <br>
&lt;loc&gt;https://www.jb51.net[!--classurl--]&lt;/loc&gt; <br>
&lt;priority&gt;0.6000&lt;/priority&gt; <br>
&lt;/url&gt;</div>
<p>
 </p>
<p>
希望本文所述对大家的帝国CMS建站有所帮助。</p>
頁: [1]
查看完整版本: 帝国CMS网站sitemap制作方法