帝国CMS7.5搜索列表模板不支持灵动标签和万能标签调用的解决方法
编辑:覃师宁来源:qinshining.com时间:2020-05-09 10:56:20阅读量:447
在文章《帝国cms模板开发教程(十一):帝国cms搜索列表页模板开发》中已经提到,帝国cms搜索列表页不支持万能标签和灵动标签,解决办法有两种,一是写入静态页面,二是修改系统文件参数
前面的教程已经说了写入静态页面,下面我们介绍修改系统文件参数的办法
找到e/search/result/index.php 在<?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);到这一步,就修完完成,这时帝国CMS7.5搜索列表页模板已经支持灵动标签和万能标签的调用
标签: