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

*Published:* 2023-11-29
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年11月29日，已超过 180天没有更新



找到 /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);
```

修改完成 ，现在试试 ，[搜索](https://www.xarjtc.com/tag/%e6%90%9c%e7%b4%a2 "查看搜索此标签更多文章")页模板里就可以使用标签和php代码了。