为DEDE织梦添加XMl网站地图
生活随笔
收集整理的這篇文章主要介紹了
为DEDE织梦添加XMl网站地图
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在后臺(tái)管理:
核心-頻道模型-單頁(yè)文檔管理-增加一個(gè)新頁(yè)面
模版文件放在你現(xiàn)在使用的templets目錄下,sitemap.xml的內(nèi)容如下
<?xml version="1.0" encoding="UTF-8"?><urlsetxmlns="http://www.sitemaps.org/schemas/sitemap/0.9"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://www.domain.com</loc> <lastmod>{dede:arclist row=1 titlelen=30 orderby=pubdate}[field:pubdate function=strftime('%Y-%m-%d',@me)/]{/dede:arclist}</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url>{dede:channel row='300' type='top'} <url> <loc>http://www.domain.com[field:typelink /]</loc> <changefreq>daily</changefreq> <priority>0.8</priority> </url> {/dede:channel}{dede:arclist row="2000" orderby="pubdate"} <url> <loc>http://www.domain.com[field:arcurl/]</loc> <lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url> {/dede:arclist} </urlset>把里面的www.domain.com修改成你自己的域名,就ok了。 這里row是列表的數(shù)量,看自己的情況設(shè)定。
轉(zhuǎn)載于:https://www.cnblogs.com/dying/p/3648876.html
總結(jié)
以上是生活随笔為你收集整理的为DEDE织梦添加XMl网站地图的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Java 时间 Date类型,Long类
- 下一篇: C++编程-预定义宏