By default, the search results page template of Zhimeng DedeCMS cannot call the arclist tag and custom fields, which is inconvenient Dream weaving cms The following method can be used to modify the search page that supports tag calls.

The modification steps are as follows:

Open include/arc. searchview. class. php

lookup

require_once(DEDEINC.”/taglib/hotwords.lib.php”);
require_once(DEDEINC.”/taglib/channel.lib.php”);

Insert below

require_once(DEDEINC.”/taglib/arclist.lib.php”);
require_once(DEDEINC.”/taglib/channelartlist.lib.php”);

lookup

else if($tagname==”hotwords”)
{
$this->dtp->Assign($tagid,lib_hotwords($ctag,$this));
}

Insert below

else if($tagname==”arclist”)
{
$this->dtp->Assign($tagid,lib_arclist($ctag,$this));
}
else if($tagname==”channelartlist”)
{
$this->dtp->Assign($tagid,lib_channelartlist($ctag,$this));
}

At this point, it is OK. How can we still implement Custom Field Call Then continue: modify include/arc. searchview. class. php

find

$query = "Select

The whole line is modified as:

$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";

In this way, the dream weaving search page search.php supports the call of arclist and custom field labels.

Post reply

Can't comment until