pbootcms如何顯示按文章內容搜索,而不是搜索標題
首先要在搜索代碼里加上:
1<input type="hidden" name="field" value="content" >
參考如下:
<form action="{pboot:scaction}" method="get">
關鍵字:<input type="text" name="keyword" >
<input type="hidden" name="field" value="content" >
<button type="submit">搜索</button>
然后到搜索頁面:
search.html
里面找到搜索結果的代碼,加上代碼:
如下圖:
本文鏈接:http://m.www9463.cn/xinwendongtai/1900.html
版權聲明:站內所有文章皆來自網絡轉載,只供模板演示使用,并無任何其它意義!