User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:mantis_search_plugin_for_mozilla_firefox

This is an old revision of the document!


Mantis Search Plugin for Mozilla FireFox

The Firefox search bar is a very useful feature. Just click Ctrl+K, type in the text to search for, then click Enter. The same feature would be very useful if applied to locating Mantis issues. This post explains how you can get the search bar working with Mantis.

Preview Image of Mantis Search Plugin

www.futureware.biz_blog_files_firefox_mantis_search_plugin_mantis_search_plugin.jpg

A Firefox search plugin is implemented via two files: - name.src: A mandatory XML file that has the definition of the plugin. - name.png: An image file that is 16×16 pixels (other formats are supported, e.g.: .jpg and .gif). This file is optional.

Following is the content of the .src file:

# Mozilla/Mantis plug-in by Victor Boctor (http://www.futureware.biz)
<search
    name="Mantis"
    description="Official Mantis Bugtracker"
    method="GET"
    action="http://bugs.mantisbt.org/view.php"
    queryEncoding="utf-8"
    queryCharset="utf-8">

    <input name="id" user>

</search>

The src file above defines the name and description of the plugin. It also defines the form that will post the user input to Mantis. The form is defined by defining the action page, the post method, and the encoding. The form has one field “id” which is set to the value of the user input. You can change this search plugin (or define another) which links to your own Mantis installation. This can be achieved by changing the domain in the action page to “http://www.example.com/mantis/view.php”.

The src and the image files are to be placed under “C:\Program Files\Mozilla Firefox\searchplugins”. This path may change based on the path chosen during installation and the Operating System on which Firefox is installed.

Download now the src and image file. These are tested on Firefox v1.0.6.

When this feature is integrated directly into Mantis, the following features will be available:

  • It will be possible to auto-install the search plugin using Javascript.
  • The plugin will point to the Mantis installation it was installed from.
  • Support for auto-update of the search plugin.
  • Support for search for text, rather than just searching by issue id.

It would be nice if someone can re-do the same plug-in for Internet Explorer 7 which has the same search bar concept.

mantisbt/mantis_search_plugin_for_mozilla_firefox.1158205550.txt.gz · Last modified: 2008/10/29 04:31 (external edit)

Driven by DokuWiki