<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦advancedsearch页面显示自定义字段的方法

时间:2020-12-15

在DEDE织梦系统下,高级搜索advancedsearch结果页默认不能显示自定义字段,我们可以通过修改程序来实现:

 
第一步:找到/plus/advancedsearch.php文件,在第224行附近找到以下代码:
 
$query = "select main.id as aid,main.*,main.description as description1, type.*  
    from $maintable main 
    left join dede_arctype type on type.id=main.typeid 
    left join $addontable addon on addon.aid=main.id 
    $where  $orderby";
 
第二步:修改第一步中的查询语句,添加自定义字段查询内容,加上“,addon.* ”如下:
 
$query = "select main.id as aid,main.*,main.description as description1, type.* ,addon.*  
    from $maintable main 
    left join dede_arctype type on type.id=main.typeid 
    left join $addontable addon on addon.aid=main.id 
    $where  $orderby";
 
通过以上方法就可以在高级搜索页显示的自定义字段的数据了。
    0
    首页
    案例
    关于
    联系