<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="keyword" >
<input type="hidden" name="field" value="title" >
<button type="submit">搜索</button>
</form>
<form action="{pboot:scaction}" method="get">
<select name="field">
<option value="title">内容标题</option>
<option value="content">内容详情</option>
</select>
关键字:<input type="text" name="keyword" >
<button type="submit">搜索</button>
</form>
<form action="{pboot:scaction}" method="get">
关键字:<input type="text" name="keyword" >
<input type="hidden" name="field" value="title" >
<input type="hidden" name="scode" value="2,3" >
<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>
如果URL采用兼容模式,这时候搜索应该使用POST,或者在首行添加隐藏域,<input type="hidden
" name="search" >
{pboot:search}
<a href="[search:link]">[search:title]</a>
{/pboot:search}
[search:n] | 序号从0开始 |
[search:i] | 序号从1开始 |
[search:id] | 编号 |
[search:scode] | 分类编码 |
[search:subscode] | 副分类编码 |
[search:sortname] | 分类名称 |
[search:subsortname] | 副分类名称 |
[search:sortlink] | 分类链接 |
[search:subsortlink] | 副分类链接 |
[search:title] | 标题 |
[search:titlecolor] | 标题颜色 |
[search:subtitle] | 副标题 |
[search:author] | 作者 |
[search:source] | 来源 |
[search:link] | 链接 |
[search:outlink] | 外部链接 |
[search:date] | 发布日期 |
[search:ico] | 缩略图 |
[search:pics] | 多图 |
[search:content] | 内容 |
[search:enclosure] | 附件 |
[search:enclosuresize] | 附件大小 |
[search:keywords] | 关键词 |
[search:description] | 描述 |
[search:istop] | 是否置顶 |
[search:isrecommend] | 是否推荐 |
[search:isheadline] | 是否头条 |
[search:visits] | 访问数量 |
[search:likes] | 点赞数量 |
[search:oppose] | 反对数量 |
[search:likeslink] | 点赞链接 |
[search:opposelink] | 反对链接 |