帝国cms搜索页支持php和动态标签方法

发布时间:2021-08-17作者:帝国建站网

帝国CMS默认搜索页面是不支持默认标签调用的,所以需要改动下,让帝国CMS搜索页支持php和动态标签。

找到  /e/search/result/index.php 文件
在下面找到

require("../../class/q_functions.php");

替换为

require('../../class/functions.php');
require('../../class/t_functions.php');

继续找到 $listtemp=$tempr[temptext];
在上面增加

$tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);

修改完成 现在试试 搜索页模板里可以使用标签了php代码了

上一篇:wordpress教程把页面设置为首页之后分页失效

下一篇:帝国CMS内容页调用当前会员投稿的其它信息