修改步骤如下:
打开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));
}
这样就可以支持channelartlist和artlist两个标签,想要调用自定义字段还有修改arc.searchview.class.php文件。
打开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";
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)