DreamWeaver DEDECMS search page supports dede tag call. How to modify it?
Recommended learning:Dreamweaver cms
DedeCMS Dreamweaver template search page supports dede tag call modification method:
The php file of dede template search page is search.php, we need to make the search page support dede tag You have to modify this file Dreamweaver Template Group
Let’s talk about how to make the search page support arclist and channelartlist tag calls
Open include/arc.searchview.class.php
Find
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”);
Find
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)); }
If we need to support other dede tags, please refer to the above Just modify the code.
The above is the detailed content of How to modify the DEDECMS search page to support dede tag calling. For more information, please follow other related articles on the PHP Chinese website!