Plugin Interfaces > Static Files > IPluginJS
Introduction
This article will demonstrate a simple FogBugz plugin that implements the IPluginJS interface contained in the FogCreek.FogBugz.Plugins.Interfaces class library.
Functionality
This plugin will insert a conspicuous "Hello, Kiwi!" header on top of any FogBugz page by calling a function included in a static Javascript (.js) file. It will also display the plugin's plugin prefix, obtained through dynamic Javascript.
In order to include the Javascript file in the plugin's /static/ directory, a parent directory including the plugin assembly DLL and a sibling "static" folder containing the Javascript file was zipped up and uploaded to FogBugz. The .zip file is included at the bottom of this article as an attachment.
Compile and Install It On Your Own
Download the source file: IPluginJS_Example.cs
Download the .zip file: IPluginJS_Example.zip
Then follow these instructions to create a functioning plugin assembly: Compiling and Installing a FogBugz Plugin