pbootcms如何显示按文章内容搜索,而不是搜索标题
首先要在搜索代码里加上:
<input type="hidden" name="field" value="content" ><input type="hidden" name="field" value="content" ><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"value="title|content"value="title|content"
如下图:

© 版权声明
本站所有资源(模板、图片)搜集整理于互联网或者网友提供,仅供学习与交流使用,如果不小心侵犯到你的权益,请及时联系我们删除该资源。
THE END
暂无评论内容