Wiki

Case Status Kiln
Register Log In

Wiki

 
FogBugz Plugin Interfaces (All…»Implementing IPluginStaticCSS
  • RSS Feed

Last modified on 12/15/2014 4:58 PM by User.

Tags:

Implementing IPluginStaticCSS

Plugin Interfaces > Static Files > IPluginStaticCSS (Example 1)

Introduction

This article will demonstrate a simple FogBugz plugin that implements the IPluginStaticCSS interface contained in the FogCreek.FogBugz.Plugins.Interfaces class library. See also the related articles: Implementing IPluginStaticFile and Implementing IPluginJS

Functionality

This plugin will generate a page containing styles specified by a static CSS file. In order to include this file in the plugin's /static/ directory, a parent directory including the plugin assembly DLL and a sibling "static" folder containing the CSS file was zipped up and uploaded to FogBugz. The .zip file is inlcuded at the bottom of this article as an attachment.

Plugin-defined CSS files are imported after all built-in stylesheets in FogBugz, so you can also apply styles to pages such as the case view. See this simple example: Tutorial - Monospace BugEvents

Compile and Install It On Your Own

Download the source file:   IPluginStaticCSS_Example.cs

Download the .zip file: IPluginStaticCSS_Example.zip

Then follow these instructions to create a functioning plugin assembly: Compiling and Installing a FogBugz Plugin

See also this example of styling the case view: Tutorial - Monospace BugEvents