Problem
How can I search TWiki from Firefox's search box? (Probably works with mozilla, too!)
Answer: see
Plugins.FirefoxTWikiSearchBoxAddOn
Solution for Firefox 2 and 3
store
TWiki.xml to your firefox searchplugins directory (e.g. C:\Program Files\Mozilla Firefox\searchplugins\TWiki.xml)
advantage of the xml format:
- only single file (icon is included in XML as base64 string
- XML format is future proof
--
MatthiasThullner - 08 Oct 2008
Solution for Firefox 1.5
seems still to work on Firefox 2 and 3. i.e. is backward compatible
- unzip or untar (you might need to gunzip on hp-ux, but linux supports tar -zxf for compressed tar files) the appropriate file into your searchplugins directory.
- On linux/hp-ux systems, this is in a directory somewhere around where firefox or its libraries are installed. (Sorry, but it depends on how Firefox was installed):
- On my linux system, the directory is /opt/firefox/searchplugins, because that's where I installed firefox.
- On TheShire, it is under /usr/lib/firefox-1.x.y/searchplugins, where x and y are the current revision of Firefox. This is probably more typical.
- On a MS Windows system, it is under C:\Program Files\Mozilla Firefox\searchplugins
- As "shipped", the searchplugin will search twiki.org. You can modify TWiki.src to search your TWiki site: Just put your URL in the
action line.
- The TWiki.gif file is just pub/TWiki/TWikiLogos/T-logo-16x16-t.gif renamed and packaged for ease of installation.
- Restart Firefox.
- The pulldown on the search window should now have a selection with the TWiki logo, and the description "TWiki.org", unless you changed it.
- The search will search through all public webs.
- It should look something like this:
- The search is a regular expression search.
- If it doesn't find anything, it will take you to TWiki's Advanced Search page. (Even if it does find something, it still takes you to that page, but it is less obvious, because you're paying attention to the results)
--
DougClaar - 31 May 2006
As you might guess, this is copied and slightly edited from our Know web. Didn't know where else to put it, so I threw it into brainstorming...
--
Contributors: DougClaar,
MatthiasThullner
Discussion
--
DougClaar - 31 May 2006
Doug, thanks for sharing. Could you repackage this as a
Plugins.AddOnPackage?
--
PeterThoeny - 01 Jun 2006
Please, please do package and publish it. I'm sure many "users" and TWikiAdmins will find this useful.
BTW, this will make my life (and my users life) a lot easier with out ticketing system
--
RafaelAlvarez - 01 Jun 2006
- the attached file TWiki.src is the Firefox 1.5 format. Firefox 2 and 3 uses a *.xml.
- Anyway the *.src seems still to work in Firefox 3.0
I created
Plugins.FirefoxTWikiSearchBoxAddOn as recommended by Peter.
Per definintion this is not an AddOn:
"An AddOnPackage implements a script that goes into the bin directory and can be called from a TWiki topic. In contrast, a Tool is designed to go into the tools directory and can only be called from the shell. Most tools are written by core developers.", but all the other definitions from
Plugins.ReadmeFirst do also not fit. I think there is a definition missing for 'things' used by other tools, e.g. firefox. What are we going to call them?
--
MatthiasThullner - 08 Oct 2008