这里讲述织梦模板搜索页search.php支持arclist和channelartlist标签调用的方法
打开include/arc.searchview.class.php文件
找到
require_once(DEDEINC."/taglib/hotwords.lib.php");require_once(DEDEINC."/taglib/channel.lib.php");
在它下面加入
require_once(DEDEINC."/taglib/arclist.lib.php");require_once(DEDEINC."/taglib/channelartlist.lib.php");
继续找到
else if($tagname=="hotwords"){$this->dtp->Assign($tagid,lib_hotwords($ctag,$this));}
在它下面加入
else if($tagname=="arclist"){$this->dtp->Assign($tagid,lib_arclist($ctag,$this));}else if($tagname=="channelartlist"){$this->dtp->Assign($tagid,lib_channelartlist($ctag,$this));}