This is an old revision of the document!
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 (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 would be nice if someone can re-do the same plug-in for Internet Explorer 7 which has the same search bar concept.