http://tieba.baidu.com/p/2926161205

搜索页的模版在2.1版本中也有了全新的模版,经过多次测试,模版调用结构如下,希望对自己折腾模版的朋友有所帮助:

一,如果不使用系统的侧边栏,在模版中的搜索代码为:
<form method="post" action="<#ZC_BLOG_HOST#>zb_system/cmd.asp?act=Search"><input type="text" name="edtSearch" id="edtSearch" size="12" /> <input type="submit" value="<#ZC_MSG087#>" name="btnPost" id="btnPost" /></form>
复制代码可以将上面的代码复制你的模版需要出现搜索的地方,这是系统默认的搜索代码,其中edtSearch、btnPost不要进行随意修改,但你可以对其使用CSS定义样式

二、模版调用结构
---| page.html
|
|----|b_article-page.html
|
|----b_article-search-content.html

使用技巧
1、b_article-search-content.html 新建此模版文件,搜索列表文章摘要显示模版,相当于分类列表页的b_article-multi.html模版,为了得到统一的效果,可以直接复制b_article-multi.html里面的内容。
2、page.html,可以直接复制catalog.html分类列表页模版的内容,将<#template:article-multi#>标签替换为<#template:article-page#>标签,再将<#template:pagebar#>标签去掉,搜索显示页面不解析页码导航。
3、b_article-page.html模版只需要放一个<#article/content#>标签就好了。

三、结语,对于需要自己定制搜索页功能,特别是在摘要列表中使用了缩略图的朋友赶快试试吧!