帝国CMS怎么制作网站sitemap

帝国cms怎么制作网站sitemap?

增加自定义页面,文件名及存放目录:../../sitemap/sitemap.xml

代码如下:

='<?xml  version="1.0" encoding="UTF-8"?>'?&gt;
<urlset><url><loc>https://www.xx.net[!--news.url--]</loc><lastmod>=date("Y-m-d");?&gt;</lastmod><changefreq>daily</changefreq><priority>1.000</priority></url>
[e:loop={'select classid,classname,classpath,wburl from [!db.pre!]enewsclass where bclassid=0 and showclass=0 and (classid52 and classid24) order by myorder',0,24,0}]
<?php if(emptyempty($bqr[wburl]))
{
$sccurl= $public_r[newsurl].$bqr[classpath];
} else {
$sccurl= $bqr[wburl];
}
?><url><loc>https://www.xx.net=$sccurl?&gt;/</loc><priority>0.6000</priority></url>
[/e:loop]
[listshowclass]'0',25,1,0[/listshowclass] 模板在后面
[e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}]
<url><loc>https://www.xx.net=$bqsr[titleurl]?&gt;</loc><lastmod>=date('Y-m-d',$bqr[newstime])?&gt;</lastmod><changefreq>daily</changefreq><priority>0.8000</priority></url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_shop order by newstime DESC",0,24,0}]
<url><loc>https://www.xx.net=$bqsr[titleurl]?&gt;</loc><lastmod>=date('Y-m-d',$bqr[newstime])?&gt;</lastmod><changefreq>daily</changefreq><priority>0.8000</priority></url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_movie order by newstime DESC",0,24,0}]
<url><loc>https://www.xx.net=$bqsr[titleurl]?&gt;</loc><lastmod>=date('Y-m-d',$bqr[newstime])?&gt;</lastmod><changefreq>daily</changefreq><priority>0.8000</priority></url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_baojia order by newstime DESC",0,24,0}]
<url><loc>https://www.xx.net=$bqsr[titleurl]?&gt;</loc><lastmod>=date('Y-m-d',$bqr[newstime])?&gt;</lastmod><changefreq>daily</changefreq><priority>0.8000</priority></url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_download order by newstime DESC",0,24,0}]
<url><loc>https://www.xx.net=$bqsr[titleurl]?&gt;</loc><lastmod>=date('Y-m-d',$bqr[newstime])?&gt;</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>https://www.xx.net[!--classurl--]</loc><priority>0.6000</priority></url>
登录后复制

以上就是帝国CMS怎么制作网站sitemap的详细内容,更多请关注慧达AI工具网其它相关文章!

转载请说明出处 内容投诉内容投诉
慧达seo-站长工具-seo工具-采集-发布-AI文章生成发布工具 » 帝国CMS怎么制作网站sitemap

慧达AI专注站群seo管理工具

查看演示 官网购买