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)); }到这一步就OK了,如何还需要实现定义字段调用的话那么就继续:修改include/arc.searchview.class.php
$query = "Select整行修改为:
$query = "Select addon.*,arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule, act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath from `{$this->AddTable}` arc left join `dede_arctype` act on arc.typeid=act.id left join `dede_addonarticle` addon on addon.aid=arc.id where {$this->AddSql} $ordersql limit $limitstart,$row";
这样织梦模板搜索页search.php就支持arclist和channelartlist标签的调用了。