Home > CMS Tutorial > DEDECMS > body text

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

藏色散人
Release: 2019-12-12 09:54:50
Original
2114 people have browsed it

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");
Copy after login

Insert below

The code is as follows:

require_once(DEDEINC."/taglib/arclist.lib.php"); 
require_once(DEDEINC."/taglib/channelartlist.lib.php");
Copy after login

Search

The code is as follows:

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

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)); 
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template