Search your confluence quickly from firefox's searchbar like google, amazon, dictionary.com etc..
| Firefox 2 and IE 7 support OpenSearch If you have Firefox 2 or IE 7, you may prefer the Confluence OpenSearch descriptor. |
Why not having the ability to a quick search on your own confluence site from any tab in firefox? heres the code for creating a basic search bar for your confluence. Copy, paste and follow the instructions.
1. find some 16x16 icon and give it an extension, for this searchbar i used .png
2. create a file, some name.src
# Mozilla Confluence search by anthony perritano # Updated by aperritano@gmail.com 12/07/04 <SEARCH version = "1.0" name="<add your name> " description="<add your discription>" method="get" action="http://<add your confluence url>.com /dosearchsite.action" > <input name="searchQuery.queryString" user> <interpret browserResultType="result" resultListStart="<!-- Content -->" resultListEnd="For better results" resultItemStart="<p>" resultItemEnd="</p>" > </search> <BROWSER update="http://<add your domain name url>.com/<plugin name> .src" updateIcon="http://<add your domain name url>.com/<plugin name>.png" updateCheckDays="3" >
Web Install
3. The extension needs to be installed manually or from an HTML page. Add the following between the <HEAD> tags of your page.
<script type="text/javascript"> <!-- function errorMsg() { alert("Netscape 6 or Mozilla is needed to install a sherlock plugin"); } function addEngine(name,ext,cat) { if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { //cat="Web"; //cat=prompt('In what category should this engine be installed?','Web') window.sidebar.addSearchEngine( "http://<add your domain>.com"+name+".src", "http://<add your domain>.com"+name+"."+ext, name, cat ); } else { errorMsg(); } } //--> </script>
Some where in your html page add this code. This is the link that the user will click to install the extension:
<a href="javascript:addEngine('add name of your .src','add your image extension','some Category name')">Go Confluence Go!</a>
Manual Install
To install manually put the .src and icon in the searchplugins dir of your firefox install. Then restart firefox.
linux
/usr/lib/your firefox dir/searchplugins
Note − Root must chmod this directory to allow users to install plugins; otherwise, root is the only user that can install plugins.
Windows
C:\Program Files\your firefox dir\searchplugins
Mac OS X
/Applications/firefox.app/Contents/MacOS/Search\ Plugins/
