不知道為啥,帝國CMS搜索模板始終不支持動態標簽調用,這很不方便,即便是升級到7.2,仍然不支持。
這篇文章成功實現了7.2版的搜索模板動態標簽
教程開始??打開 /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);
就可以了!