Home  >  Article  >  CMS Tutorial  >  How to modify the DEDECMS search page to support dede tag calling

How to modify the DEDECMS search page to support dede tag calling

藏色散人
藏色散人Original
2020-01-09 09:52:161845browse

How to modify the DEDECMS search page to support dede tag calling

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!

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