注册 | 登录 |
地方论坛门户及新闻和人才网址大全

如何在在高级搜索页面advancedsearch.php调用自定义字段

时间:2021-07-21人气:-


下面跟大家谈的是关于”如何在在高级搜索页面advancedsearch.php调用自定义字段“方法:

步骤:

找到advancedsearch.php页面。
$query = "select main.id as aid,main.*,main.description as description1, type.* from $maintable main left join dede2_arctype type on type.id=main.typeid left join $addontable addon on addon.aid=main.id $where $orderby";
改成
$query = "select main.id as aid,main.*,main.description as description1, type.* ,addon.*
from $maintable main
left join dede2_arctype type on type.id=main.typeid
left join $addontable addon on addon.aid=main.id
$where $orderby";

提示:考虑dede程序性能,如果没必要就不要搜索这些字段了


上篇:windows下替代dedecms收费客户端工具实现计划任务

下篇:修改DEDE5.7 TAG字数限制给TAG加链接方法教程