详情页

帝国cms搜索模板不支持灵动标签和万能标签的解决方法

时间:2024年03月29日

编辑:佚名

1,打开 /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");
2,再查找
//替换公共模板变量
 $listtemp=$tempr[temptext];
在上面添加如下代码
//新增支持灵动标签和万能标签
$tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);
修改完成,这样就可以在搜索模板中灵活使用帝国CMS强大的灵动和万能标签了
相关文章
猜你需要