帝国CMS7.0至搜索模板始终不支持动态标签调用,这很不方便,即便是升级到7.5,仍然不支持。使搜索页支持灵动标签的方法很简单,教程如下:

打开 /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);

就可以了!