当前位置:首页> 随笔> Pboot教程

PbootCMS搜索常见问题介绍

:2019-06-05   :舒彬琪   :124

PbootCMS搜索常见问题

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

解决方案:

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

代表搜索所有栏目内容

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

image.png

搜索代码示例


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