帝国cms搜索页面模板

搜索页面模板标签

搜索模板常用

系统搜索到约有
[!–ecms.num–]项符合[!–keyboard–]的查询结果
搜索结果列表:


[!--empirenews.listtemp--][!--empirenews.listtemp--]

分页代码:

[!--show.page--]
//默认搜索列表主要用[!--show.page--]变量在e/class/t_functions.php中修改

列表内容模板(list.var) (*)


  • [!--no.num--].

    [!--title--]

    [!--smalltext--]

    [!--titleurl--] - [!--newstime--] - [!--this.classname--]

  • 搜索模板支持动态标签调用的方法
    打开 /e/search/result/index.php 文件
    找到

    
    require("../../class/connect.php");
    require("../../class/db_sql.php");
    require("../../data/dbcache/class.php");
    require("../../class/q_functions.php");
    require "../".LoadLang("pub/fun.php");

    修改为:

    
    require('../../class/connect.php');
    require('../../class/db_sql.php');
    require('../../class/functions.php');
    require('../../class/t_functions.php');
    require('../../data/dbcache/class.php');
    require "../".LoadLang("pub/fun.php");

    找到

    
    //替换公共模板变量
    $listtemp=$tempr[temptext];

    在其上边添加以下代码

    
    //页面支持标签
    $tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注