聯(lián)系官方銷售客服
1835022288
028-61286886
您好,我自定義某個欄目的搜索模板為a.html,并且此欄目的內(nèi)容模塊是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="搜索內(nèi)容..." 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>
但是點擊搜索后還是系統(tǒng)默認的搜索模板結(jié)果頁面,然后跳轉(zhuǎn)到我設(shè)置的a.html 模板界面呢
基于欄目的搜索模板自定義,需要附帶catid,表示哪個欄目
回復(fù)@迅睿框架聯(lián)合創(chuàng)始人 非常感謝 還請問自定義搜索結(jié)果頁面 我目前是
{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}
這樣的,但輸入搜索詞搜索不出來