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.
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.