User Tools

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

Site Tools


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


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 (
    description="Official Mantis Bugtracker"

    <input name="id" user>


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 “”.

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)