1.增加自定义页面 =》选择直接页面,页面名称为:网站地图,文件名修改为 ../../sitemap.xml
附:自定义页面内容如下
='<?xml version="1.0" encoding="UTF-8"?>'?>
always
1.0
[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']."/";
}
?>
=$sccurl?>
=date("Y-m-d")?>
always
0.6
[/e:loop]
[e:loop={0,3000,3,0,'','newstime DESC'}]
=$bqsr['titleurl']?>
=date("Y-m-d")?>
always
0.8
[/e:loop]
[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]
/e/tags/?tagname==$bqr['tagname']?>
=date("Y-m-d")?>
always
0.5
[/e:loop]
[e:loop={'select * from [!db.pre!]enewspage order by id',20,24,0}]
$pageurl=$public_r['newsurl'].str_replace('../../','',$bqr['path']);
$css='pagecss';
if($classid=='page'.$bqr[id])
{
$css='selfpagecss';
}
?>
=$pageurl?>
=date("Y-m-d")?>
always
0.4
[/e:loop]
说明:
网址修改成自己网站的域名。
[e:loop={0,3000,3,0,'','newstime DESC'}] 所有文章。3000为文章数量,更具自己网站的需求改。
[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}] 调取tags里所有信息。
2.设置自动更新:系统 =》计划任务 =》 管理计划任务 =》 刷新自定义页面 =》
当然我们也可以手动刷新生成自定义页面
如果觉得《帝国cmssitemap.php 帝国CMS网站地图sitemap制作与自动更新》对你有帮助,请点赞、收藏,并留下你的观点哦!