织梦搜索结果增加dede:tag标签支持

织梦的搜索结果页面中,如果要使用dede:tag等标签的支持,你需要这样做

打开 include\arc.searchview.class.php 找到

require_once(DEDEINC."/taglib/channel.lib.php"😉;

在它的下面加入

require_once(DEDEINC."/taglib/tag.lib.php"😉;

继续找到

else if($tagname=="hotwords"😉

{

$this->dtp->Assign($tagid,lib_hotwords($ctag,$this));

}

大概在540行,在它的下面加入

else if($tagname=="arclist")

{

$this->dtp->Assign($tagid,lib_arclist($ctag,$this));

}

else if($tagname=="channelartlist")

{

$this->dtp->Assign($tagid,lib_channelartlist($ctag,$this));

}

else if($tagname=="tag")

{

$this->dtp->Assign($tagid,lib_tag($ctag,$this));

}

注明:本文为星速云原创版权所有,禁止转载,一经发现将追究版权责任!

(0)
上一篇 2022年8月9日 上午8:55
下一篇 2022年8月9日 上午8:56

相关推荐

发表评论

登录后才能评论
问答社区 QQ客服
微信客服
微信客服
分享本页
返回顶部