pbootcms模板显示按文章内容搜索

2025-08-08 0 388

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模板显示按文章内容搜索

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

版权声明:所有的源码、软件和资料,不得使用于非法商业用途,不得违反国家法律,一切关于该资源商业行为与本站无关。

影子cms pbootcms教程 pbootcms模板显示按文章内容搜索 https://www.yingzicms.com/335.html

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务