pbootcms如何显示按文章内容搜索,而不是搜索标题
首先要在搜索代码里加上:

<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>
</form>

然后到搜索页面:search.html里面找到搜索结果的代码,加上代码:
value=”title|content”

pbootcms文章内容搜索显示方法

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注