在帝国CMS中可以采用“栏目 —> 自定义页面 —> 增加自定义页面”的形式生成网站地图,文件名为sitemap.xml
sitemap.xml:其中loc代表链接地址和priority代表权重为,changefreq修改频率和lastmod最好更改日期。
=’’?>
[e:loop={"select * from [!db.pre!]enewsclass order by myorder”,0,24,0}]
if($bqr['classurl']==”)
{
$sccurl=$public_r['newsurl'].$bqr['classpath'].”/”;
}
else
{
$sccurl=$bqr['classurl'].”/”;
}
?>
[/e:loop]
[e:loop={"select * from [!db.pre!]enewszt order by ztid”,0,24,0}]
if($bqr['zturl']==”)
{
$sccurl=$public_r['newsurl'].$bqr['ztpath'].”/”;
}
else
{
$sccurl=$bqr['zturl'].”/”;
}
?>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_news order by newstime”,0,24,0}]
[/e:loop]
更多信息请查看IT技术专栏