Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

PbootCMS搜索未搜索到任何数据Pb多条件搜索设置

pbootcms网站模板搜索未搜索到任何数据,Pb多条件搜索!熟悉PbootCMS手册是使用本程序开发模板的前提,虽然我们尽可能把所有标签做到简单到想哭,但是还是需要您静下心来好好看看!

pbootcms网站模板搜索未搜索到任何数据,Pb多条件搜索!熟悉PbootCMS手册是使用本程序开发模板的前提,虽然我们尽可能把所有标签做到简单到想哭,但是还是需要您静下心来好好看看!再了解更多的pbootcms教程从而更好的实现网站的建设!

数据库中有内容而页面提示 未搜索到任何数据

解决方案:

在前半部分添加一个标签 scode=*

代表搜索所有栏目内容

{pboot:search num=12 order=sorting scode=* field='title|content'}
{/pboot:search}

简单搜索代码示例

<form action="{pboot:scaction}" method="get">
    关键字:<input type="text" name="keyword" >
    <button type="submit">搜索</button>
</form>

多条件搜索代码示例

可以通过隐藏字段,指定搜索的栏目

<form action="{pboot:scaction}"  method="get">
    内容:<input type="text" name="content" >
    标题:<input type="text" name="title" >
    作者:<input type="text" name="author" >
    <input type="hidden" name="scode" value="2,3" >
    <button type="submit">搜索</button>
</form>

搜索结果列表

{pboot:search}
<a href="search:link">search:title</a>
{/pboot:search}
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

如何实现织梦有短标题则显示短标题,没有则显示文章标题

2022-11-23 0:00:00

编程技巧

禁用EcShop缓存或者关闭ecshop缓存功能教程

2022-11-26 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索