❶ 如何自動生成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]
第三步:更新網站自定義頁面輸入網址看看網址我自需要我域名改自看效