联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
我自定义某个栏目的搜索模板为a.html,点击搜索后还是系统默认的搜索模板结果页面呢
类型:迅睿CMS 更新时间:2021-12-09 09:52:37 内容模块 搜索模板

您好,我自定义某个栏目的搜索模板为a.html,并且此栏目的内容模块是zpzl(是我自定义的)

代码如下

<form class="search-form" action="/index.php" method="get">

  <input type="hidden" name="s" value="zpzl">

<input type="hidden" name="c" value="search">


    <input type="text" placeholder="搜索内容..." name="keyword" style="width:450px; height:40px; float:left; display:inline; border:1px solid #c5161e; text-align:left; color:#9f9f9f;" value="" />

    <input  type="submit" style="width:75px; height:42px; float:left; display:inline; background-color:#c5161e; border:none; color:#FFFFFF; font-size:18px;" value=" 搜索" />

</form>


但是点击搜索后还是系统默认的搜索模板结果页面,然后跳转到我设置的a.html 模板界面呢

回帖
  • 迅睿框架联合创始人
    #1楼    迅睿框架联合创始人
    2021-12-08 21:08:16
    Chrome 0
    <form class="search-form" action="/index.php" method="get">
       <input type="hidden" name="s" value="zpzl">
    <input type="hidden" name="c" value="search">
    <input type="hidden" name="catid" value="这里填写设置自定义模板的栏目id号">
    基于栏目的搜索模板自定义,需要附带catid,表示哪个栏目
    满意答案
  • 盛晓静
    #2楼    盛晓静
    2021-12-08 21:30:04
    Chrome 0
    迅睿框架联合创始人 非常感谢 还请问自定义搜索结果页面 我目前是{search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=5 urlrule=$urlrule return=rs} <tr> <td width="3%" height="50" align="center" valign="middle" style=" border-bottom:1px dashed #e0e0e0;"><img src="images/tb04.jpg" /></td> <td width="61%" height="50" style=" border-bottom:1px dashed #e0e0e0;"><a href="{$rs.url}">{$rs.title}…</a></td> <td width="20%" height="50" style="color:#aaaaaa; border-bottom:1px dashed #e0e0e0;">{$rs.wjdx}</td> <td width="16%" height="50" align="center" valign="middle" style=" border-bottom:1px dashed #e0e0e0;"><a href="{dr_down_file($rs.xiazai)}" style="width:67px; height:27px; display:block; border:1px solid #dddddd; color:#979797; text-align:center; font-size:16px; line-height:27px; border-radius: 5px;">下载</a></td> </tr>{/search}这样的,但输入搜索词搜索不出来
  • 盛晓静
    #3楼    盛晓静
    2021-12-09 09:52:37
    Chrome 0
    @迅睿框架联合创始人:非常感谢