Show Changes Show Changes
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Search

History

11/6/2008 1:39:03 PM
-205.158.116.232
11/5/2008 5:15:09 PM
-66.78.112.151
11/5/2008 3:57:36 PM
-205.158.116.232
11/5/2008 1:22:05 PM
-205.158.116.232
11/5/2008 1:19:25 PM
-205.158.116.232
List all versions List all versions

RSS feed for the FlexWiki namespace

How To Create A Plugin
.
Summary
SeeAlso

First, make sure you've read the PlugInOverview.

Now, to create your plugin, you need to do the following things:

Create a plugin assembly

A plugin assembly is simply a .NET assembly that exposes classes and methods for WikiTalk. You can just create a simple class library project in VisualStudio, and add a reference to FlexWiki.dll.

Add one or more ExposedClasses with one or more ExposedMethods

In your plugin assembly you must have one or more public classes that are "exposed." This means that they are marked with special attributes that enable them to work in WikiTalk engine.

You can read more details about this under ExposedClass and ExposedMethod, but a simple example would look roughly like this:

 [ExposedClass("MyService", "Provides a simple service to WikiTalk")]
 public class MyService
 {
   [ExposedMethod(ExposedMethodFlags.CachePolicyNone, 
      "Answer an adjusted version of the string we're passed")]
   public static string AdjustString(string s)
   {
       return s + " is nice in WikiTalk";
   }
 ...
 }

Once this PlugIn was installed, it could be used from WikiTalk as follows:

 @@MyService.AdjustString("Dancing")@@

which would produce:

 Dancing is nice in WikiTalk

Configure your FlexWiki installation to register your ExposedClasses from your plugin assembly

Once you have your assembly all built, you need to install it so that FlexWiki will load it and the types it contains into the WikiTalk engine.

To do this, follow the instructions in PlugInInstallation.

Question

Not logged in. Log in

Welcome to the home of FlexWiki, a collaboration tool, based on WikiWiki, implemented using Microsoft .NET technologies

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics