本文实例讲述了dedecms搜索页面不能使用arclist等标签的解决方法。分享给大家供大家参考。具体方法如下:
这里讲述dedecms模板搜索页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/channel.lib.php");
下面插入
require_once(DEDEINC."/taglib/arclist.lib.php");
require_once(DEDEINC."/taglib/channelartlist.lib.php");
require_once(DEDEINC."/taglib/channelartlist.lib.php");
查找
else if($tagname=="hotwords")
{
$this->dtp->Assign($tagid,lib_hotwords($ctag,$this));
}
{
$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));
}
{
$this->dtp->Assign($tagid,lib_arclist($ctag,$this));
}
else if($tagname=="channelartlist")
{
$this->dtp->Assign($tagid,lib_channelartlist($ctag,$this));
}
希望本文所述对大家的dedecms建站有所帮助。