dedecms 生产google地图的xml代码

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

<urlset xmlns="">

<url>

<loc></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>[field:typelink /]</loc>

<changefreq>daily</changefreq>

<priority>0.8</priority>

</url>

{/dede:channel}

{dede:arclist row=2000 orderby=pubdate}

<url>

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

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

<changefreq>monthly</changefreq>

</url>

{/dede:arclist}

</urlset>

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

明天的希望,让我们忘了今天的痛苦

dedecms 生产google地图的xml代码

相关文章:

你感兴趣的文章:

标签云: