首先要在搜索代码里加上:
<input type="hidden" name="field" value="content" > |
参考如下:
<form action="{pboot:scaction}" method="get">
然后到搜索页面:search.html里面找到搜索结果的代码,加上代码:
如下图:
关键字:<input type="text" name="keyword" >
<input type="hidden" name="field" value="content" >
<button type="submit">搜索</button>
</form>
然后到搜索页面:search.html里面找到搜索结果的代码,加上代码:
value="title|content" |
如下图:
特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。


