帝国cms二次开发搜索页支持php和动态标签代码

时间:2024年03月29日

/

来源:网络

/

编辑:佚名

帝国CMS动态页面默认是不支持标签语法的,所以在制作搜索、留言等页面的时候需要改动下才行。
帝国cms二次开发教程
找到  /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代码了。
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。