Home > CMS Tutorial > DEDECMS > body text

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

藏色散人
Release: 2020-01-09 09:52:16
Original
1869 people have browsed it

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

Insert below

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

Find

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

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

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!

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