searchresultstag.txt
来自「wiki建站资源 java编写的 很好用」· 文本 代码 · 共 35 行
TXT
35 行
Includes the body if a search has been performed. This tag will also include the body in case there were ''no'' hits. You can use the [IfNoSearchResults Tag] to check the number of hits.
----
!Usage
{{{
<wiki:SearchResults>
HTML or JSP tags
</wiki:SearchResults>
}}}
!Parameters
None.
!Example
{{{
<wiki:SearchResults>
<h4>Search Results</h4>
<p>
<i>Found <wiki:SearchResultsSize/> hits, here are the top 20.</i>
</p>
<wiki:SearchResultIterator id="searchref" maxItems="20">
<wiki:LinkTo><wiki:PageName/></wiki:LinkTo>
<%=searchref.getScore()%>
</wiki:SearchResultIterator>
<wiki:IfNoSearchResults>
<b>No results</b>
</wiki:IfNoSearchResults>
</wiki:SearchResults>
}}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?