织梦搜索页支持article,sql,channelartlist等标签
打开文件:include/arc.searchview.class.php
找到:
- <span style="font-family:tahoma,geneva,sans-serif;">1
- require_once(DEDEINC."/taglib/hotwords.lib.php");
- </span>
在下面添加:
- <span style="font-family:tahoma,geneva,sans-serif;">1
- require_once(DEDEINC."/taglib/channel.lib.php");
- require_once(DEDEINC."/taglib/arclist.lib.php");
- require_once(DEDEINC."/taglib/channelartlist.lib.php");
- require_once(DEDEINC."/taglib/myad.lib.php");
- require_once(DEDEINC."/taglib/php.lib.php");
- require_once(DEDEINC."/taglib/sql.lib.php");
- </span>
然后找到:
- <span style="font-family:tahoma,geneva,sans-serif;">1
- else if($tagname=="hotwords")
- {
- $this->dtp->Assign($tagid,lib_hotwords($ctag,$this));
- }
- </span>
在下面添加:
- <span style="font-family:tahoma,geneva,sans-serif;">01
- 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=="myad")
- {
- $this->dtp->Assign($tagid,lib_myad($ctag,$this));
- }
- else if($tagname=="php")
- {
- $this->dtp->Assign($tagid,lib_php($ctag,$this));
- }
- else if($tagname=="sql")
- {
- $this->dtp->Assign($tagid,lib_sql($ctag,$this));
- }
- </span>
这样,搜索页面就支持多种标签了。包括{dede:arclist} {/dede:arclist}、{dede: channelartlist } {/dede: channelartlist}、{dede: myad } {/dede: myad }、{dede: php } {/dede: php }、{dede: sql } {/dede: sql }。以上是青锋建站给大家分享的如何让织梦搜索页支持article,sql,channelartlist等标签。青锋建站,提供专业的高品质网站制作服务,包括dedecms网站建设服务,SEO,网络营销,PHP开发,网站建设知名品牌,全国接单,专业做优化型网站,为企业构建营销平台。
转载请注明来源网址:青锋建站-http://www.sjzphp.com/cmsxitong/dedecms/sousuoye_1518.html