织梦网站地图插件下载:支持各种格式html、xml、txt、rss.xml

发布时间:2021-12-31 阅读:次

按规格按需求生成各种sitemap地图文件,符合各种搜索引擎。可同时生成5种地图文件 sitemap.html  sitemap.txt  sitemap.xml  google.xml  rss.xml。

效果演示如图:

61ce9d9293fca.jpg

插件描述

utf8 和 gbk 有齐2种编码插件文件

根据自己程序编码选择对应插件,上传模块,安装,使用

可同时生成5种地图文件 sitemap.html  sitemap.txt  sitemap.xml  google.xml  rss.xml

支持自动绝对路径(无论你站是否开启绝对路径)

sitemap.html sitemap.txt sitemap.xml google.xml rss.xml

 

模板文件分别

/templets/plus/sitemap.html

/templets/plus/sitemap.txt

/templets/plus/sitemap.xml

/templets/plus/google.xml

/templets/plus/rss.xml

发表文章后马上更新地图

如果你想让插件支持发布文档后自动更新sitemap地图,你可以这样做

1、后台-系统-系统基本参数,添加个变量开关

变量名称:cfg_makesitemap

变量类型:布尔(Y/N)

参数说明:发表文章后马上更新地图

变量值:Y

所属组:站点设置

61ce9d9f11245.png

2、打开 /dede/inc/inc_archives_functions.php 找到

global $arcID

找到这一行,在它上面加入

//发表文章后马上更新地图 开始

global $cfg_basedir,$cfg_templets_dir,$cfg_plus_dir,$cfg_makesitemap;

if($cfg_makesitemap == 'Y')

{

$maps = array('sitemap.html','sitemap.txt','sitemap.xml','google.xml','rss.xml');

$pv = new PartView();

foreach($maps as $m)

{

$pv->SetTemplet($cfg_basedir.$cfg_templets_dir.$cfg_plus_dir.'/'.$m);

$pv->SaveToHtml(dirname(__FILE__).'/../../'. $m);

}

}

//发表文章后马上更新地图 结束

如图:

61ce9daa47703.png


站内搜索

站点公告

我的网站新建中

学习中新建中,只是我自己的自娱自乐。。。

热门标签

友情链接

申请友链