zoukankan      html  css  js  c++  java
  • dede搜索页面上某些标签无法使用

    dede默认的搜索模板是search.htm,但在模板文件中使用{dede:type}{/dede:type}或{dede:flink}{/dede:flink}时,发现标签并没有被解析,显示为空。
    
    解决方法如下:
    1.在dede安装目录下的include目录下找到arc.searchview.class.php,
       在其require_once(DEDEINC."/taglib/hotwords.lib.php");后加上你想要能被解析的标签库文件。
    如:
    require_once(DEDEINC."/taglib/type.lib.php");
    require_once(DEDEINC."/taglib/flink.lib.php");
    
    2.然后在搜索$tagname=="hotwords"这个,在其后加上你要支持的标签。
    如:
    else if($tagname=="type") {
        $this->dtp->Assign($tagid,lib_type($ctag,$this));
    }
    else if($tagname=="flink") {
        $this->dtp->Assign($tagid,lib_flink($ctag,$this));
    }
    这样在搜索模板中就支持type,flink这两个标签了。
    
  • 相关阅读:
    反射 元类
    多态
    封装
    继承
    面向基础
    包 logging模块 hashlib模块 openpyxl 深浅拷贝
    常用模块
    re模块(正则表达式)
    模块 导入方式 软件开发目录规范
    第 3 章 镜像
  • 原文地址:https://www.cnblogs.com/jkko123/p/6294707.html
Copyright © 2011-2022 走看看