Web Left Bar Search
The code below is INCLUDEd into WebLeftBar. Use
%INCLUDE{"%SHAREDWEB%/WebLeftBarSearch" section="searchform"}%
The form supports both topic (page name) and content (body text) searches in the specified web or all Wiki.
This search uses a JavaScript routine,
searchAction() to change the action depending on the choices made.
If JavaScript is disabled, a message will appear an the user will be redirected to
WebSearchAdvanced.
%STARTSECTION{"searchform"}%
<noautolink>
<style type="text/css">
.topicItem {font-size: 10px; font-family:arial,geneva,helvetica,sans-serif}
.FormElements {line-height: 20px}
.small{font-size: 10px}
.xsmall{font-size: 9px}
</style>
</noscript>
*Search* <br>
<div class="topicItem">
<div class="FormElements">
<form name="SearchForm" action="%SCRIPTURLPATH{view}%/%BASEWEB%/WebSearch" onsubmit="searchAction();" >
<input type="text" name="search" id="search" value="" />
<input type="hidden" name="tab" id="tab" value="search" />
<br />
<select name="web">
<option value="%BASEWEB%" /> %BASEWEB%
<option value="all" /> all Wiki
</select>
<br />
<input type="radio" name="scope" value="topic" /> topic
<input type="radio" name="scope" value="text" checked /> content
<br />
<input type="submit" name="Go" value="Search" />
</form>
</div>
<i><a href="%SCRIPTURL{"view"}%/%BASEWEB%/WebSearchAdvanced" class="small" title="Advanced search page with many options">Additional search options...</a></i>
</div>
</noautolink>
%ENDSECTION{"searchform"}%