不知道為啥,帝國CMS搜索模板始終不支持動態(tài)標(biāo)簽調(diào)用,這很不方便,即便是升級到7.2,仍然不支持。
這篇文章成功實現(xiàn)了7.2版的搜索模板動態(tài)標(biāo)簽
打開 /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];
在上面添加以下代碼:
//頁面支持標(biāo)簽$tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);就可以了!
新聞熱點
疑難解答
圖片精選