pbootcms如何顯示按文章內(nèi)容搜索,而不是搜索標(biāo)題
首先要在搜索代碼里加上:

<input type="hidden" name="field" value="content" >

參考:

<form action="{pboot:scaction}" method="get">
    關(guān)鍵字:<input type="text" name="keyword" >
    <input type="hidden" name="field" value="content" >
    <button type="submit">搜索</button>
</form>

然后到搜索頁面:search.html里面找到搜索結(jié)果的代碼,加上代碼:

value="title|content"

如圖