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://www.7ov.cn/xinwendongtai/1900.html
版权声明:站内所有文章皆来自网络转载,只供模板演示使用,并无任何其它意义!