A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > dedecms > dedecms 生产google地图的xml代码

dedecms 生产google地图的xml代码

时间:2015-05-25 15:51作者:sa人气:85

把下面的代码复制到一个文本文件里面,把http://localhost 改成你的网站的网址。保存成为Sitemap.xml 放到网站的模板目录里面,然后后台生产就可以了。

<?xml version="1.0" encoding="gb2312"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">

<url>

<loc>http://localhost</loc>;

<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}

[field:pubdate function=strftime('%Y-%m-%d',@me)/]

{/dede:arclist}</lastmod>

<changefreq>daily</changefreq>

<priority>1.0</priority>

</url>

{dede:channel row='23' type='top'}

<url>

<loc>http://localhost[field:typelink /]</loc>

<changefreq>daily</changefreq>

<priority>0.8</priority>

</url>

{/dede:channel}

{dede:arclist row=2000 orderby=pubdate}

<url>

<loc>http://localhost[field:arcurl/]</loc>

<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>

<changefreq>monthly</changefreq>

</url>

{/dede:arclist}

</urlset>

标签dedecms,生产,google,地图,xml,代码,面的

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号