《dedecms 生產(chǎn)google地圖的xml代碼》要點(diǎn):
本文介紹了dedecms 生產(chǎn)google地圖的xml代碼,希望對(duì)您有用。如果有疑問(wèn),可以聯(lián)系我們。
相關(guān)主題:dedecms教程
導(dǎo)讀:把下面的代碼復(fù)制到一個(gè)文本文件里面,把http: localhost 改成你的網(wǎng)站的網(wǎng)址.保留成為Sitemap xml 放到網(wǎng)站的模板目錄里面,然后后臺(tái)
把下面的代碼復(fù)制到一個(gè)文本文件里面,把http://localhost 改成你的網(wǎng)站的網(wǎng)址.保留成為Sitemap.xml 放到網(wǎng)站的模板目錄里面,然后后臺(tái)生產(chǎn)就可以了.?
代碼如下:
?<必修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 生產(chǎn)google地圖的xml代碼》是否對(duì)您有啟發(fā),歡迎查看更多與《dedecms 生產(chǎn)google地圖的xml代碼》相關(guān)教程,學(xué)精學(xué)透。維易PHP學(xué)院為您提供精彩教程。
轉(zhuǎn)載請(qǐng)注明本頁(yè)網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/10732.html