添加自定义页面

文件名及寄存目录:../../sitemap/sitemap.xml

<?='<?xmlversion="1.0"encoding="UTF-8"?>'?>
<urlsetxmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.11px.cn[!--news.url--]</loc>
<lastmod><?=date("Y-m-d");?></lastmod>
<changefreq>daily</changefreq>
<priority>1.000</priority>
</url>
[e:loop={'selectclassid,classname,classpath,wburlfrom[!db.pre!]enewsclasswherebclassid=0andshowclass=0and(classid<>52andclassid<>24)orderbymyorder',0,24,0}]
<?php
if(empty($bqr[wburl]))
{
$sccurl=$public_r[newsurl].$bqr[classpath];
}else{
$sccurl=$bqr[wburl];
}
?>
<url>
<loc>http://www.11px.cn<?=$sccurl?>/</loc>
<priority>0.6000</priority>
</url>
[/e:loop]
[listshowclass]'0',25,1,0[/listshowclass]模板在后面
[e:loop={"select*from[!db.pre!]ecms_newsorderbynewstimeDESC",0,24,0}]
<url>
<loc>http://www.11px.cn<?=$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_shoporderbynewstimeDESC",0,24,0}]
<url>
<loc>http://www.11px.cn<?=$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_movieorderbynewstimeDESC",0,24,0}]
<url>
<loc>http://www.11px.cn<?=$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_baojiaorderbynewstimeDESC",0,24,0}]
<url>
<loc>http://www.11px.cn<?=$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_downloadorderbynewstimeDESC",0,24,0}]
<url>
<loc>http://www.11px.cn<?=$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.11px.cn[!--classurl--]</loc>
<priority>0.6000</priority>
</url>


声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!

原文地址:帝国CMS网站地图sitemap教程发布于2022-06-07 07:43:42

相关推荐