<?xml version="1.0" encoding="UTF-8" ?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.9"> <url> <loc>http://www.lexiangba.net/</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://www.lexiangba.net{dede:field name='typeurl'/}</loc> <changefreq>daily</changefreq> <priority>0.8</priority> </url> {/dede:channel} {dede:arclist row=2000 orderby=pubdate} <url> <loc>http://www.lexiangba.net[field:arcurl/]</loc> <lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url> {/dede:arclist} </urlset>创建好文件之后,把sitemap.xml放入模板文件夹中。 温馨提示:记得把网址改为自己的网址哦! 2:接着更新网站首页,设置如下图: 更新后网站地图几生成了,方便简单。 以上就是织梦模板制作中如何帮用户创建sitemap.xml的全部内容,希望对大家的学习和解决疑问有所帮助,也希望大家多多支持乐享吧网。
深度改造织梦模板搜索页面让其支持dede标签
熟悉织梦模板标签的朋友都知道,织梦的搜索页面是不支持一些常用的织梦标签的,例如:{dede:arclist} {/dede:arclist}、{dede: channelartlist } {/dede: channelartlist}、{dede: myad } {/dede: myad }、{dede: