dedecms What should I do if the search page cannot use arclist and other tags?
The example in this article describes the solution to the problem that arclist and other tags cannot be used on the dedecms search page. Share it with everyone for your reference. The specific method is as follows:
Here we describe how dedecms template search page search.php supports arclist and channelartlist tag calls. The steps are as follows:
Open include/arc.searchview.class.php.
Search:
The code is as follows:
require_once(DEDEINC."/taglib/hotwords.lib.php"); require_once(DEDEINC."/taglib/channel.lib.php");
Insert below
The code is as follows:
require_once(DEDEINC."/taglib/arclist.lib.php"); require_once(DEDEINC."/taglib/channelartlist.lib.php");
Search
The code is as follows:
else if($tagname=="hotwords") { $this->dtp->Assign($tagid,lib_hotwords($ctag,$this)); }
Insert below
The code is as follows:
else if($tagname=="arclist") { $this->dtp->Assign($tagid,lib_arclist($ctag,$this)); } else if($tagname=="channelartlist") { $this->dtp->Assign($tagid,lib_channelartlist($ctag,$this)); }
The above is the detailed content of What should I do if the dedecms search page cannot use arclist and other tags?. For more information, please follow other related articles on the PHP Chinese website!