Home  >  Article  >  CMS Tutorial  >  What should I do if the dedecms search page cannot use arclist and other tags?

What should I do if the dedecms search page cannot use arclist and other tags?

藏色散人
藏色散人Original
2019-12-12 09:54:502051browse

What should I do if the dedecms search page cannot use arclist and other tags?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn