TWiki has been upgraded to version 6.0. You'll see some changes in the left bar and if you create a topic. Please let Steve know immediately if anything seems wrong or doesn't work as expected!

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.

Search Form Code

<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}

*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 
     <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"  />

<i><a href="%SCRIPTURL{"view"}%/%BASEWEB%/WebSearchAdvanced" class="small" title="Advanced search page with many options">Additional search options...</a></i>


Topic revision: r2 - 15 Mar 2013 - VickiBrown
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Kreis Quality? Send feedback