帝国cms网站地图sitemap.xml文件的生成代码

在帝国CMS中可以采用“栏目 —> 自定义页面 —> 增加自定义页面”的形式生成网站地图,文件名为sitemap.xml sitemap.xml:其中loc代表链接地址和priority代表权重为,changefreq修改频率和lastmod最好更改日期。[code]’?> [!--news.url--] 1.000 [e:loop={"select * from [!db.pre!]enewsclass order by myorder”,0,24,0}] 0.6000 [/e:loop] [e:loop={"select * from [!db.pre!]enewszt order by ztid”,0,24,0}] 0.6000 [/e:loop] [e:loop={"select * from [!db.pre!]ecms_news order by newstime”,0,24,0}] 0.5000 [/e:loop] [/code]
已邀请:
'?>


http://网站地址/
1.000

[e:loop={"select * from phome_enewsclass where bclassid in (23,24,25,26,27) order by classid asc",0,24,0}]


http://网站地址
0.6000

[/e:loop]

[e:loop={23,90,3,1,'','newstime DESC'}]

http://网站地址['titleurl']?>
[newstime])?>
monthly
0.7

[/e:loop]
[e:loop={24,90,3,1,'','newstime DESC'}]

http://网站地址['titleurl']?>
[newstime])?>
monthly
0.7

[/e:loop]

[e:loop={25,90,3,1,'','newstime DESC'}]

http://网站地址['titleurl']?>
[newstime])?>
monthly
0.7

[/e:loop]
[e:loop={26,90,3,1,'','newstime DESC'}]

http://网站地址['titleurl']?>
[newstime])?>
monthly
0.7

[/e:loop]
[e:loop={27,90,3,1,'','newstime DESC'}]

http://网站地址['titleurl']?>
[newstime])?>
monthly
0.7

[/e:loop]


要回复问题请先登录注册