❶ 如何自动生成sitemap.xml文件
itemap制作
第步:新建自定义页面命名规则按照面做:
第二步:段代码放模板面:
[!--news.url--]
1.0
[e:loop={'改自栏目id',1,0,0,'','newstime DESC'}][/e:loop]
daily
[e:loop={'改自栏目id',500,0,0,'','newstime DESC'}]
0.7
daily
[/e:loop]
[e:loop={‘改自栏目id’,500,0,0,'','newstime DESC'}]
0.7
daily
[/e:loop]
[e:loop={"select * from [!db.pre!]enewsclass order by myorder",0,24,0}]
<?
if($bqr['classurl']=='')
{
$sccurl=$public_r['newsurl'].$bqr['classpath']."/";
$addtime=date('Y-m-d',$bqr[addtime]);
}
else
{
$sccurl=$bqr['classurl']."/";
$addtime=date('Y-m-d',$bqr[addtime]);
}
?>
0.8
daily
[/e:loop]
第三步:更新网站自定义页面输入网址看看网址我自需要我域名改自看效