Show Changes Show Changes
Edit Edit
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

5/16/2006 2:01:21 AM
-80.168.63.190
4/18/2006 4:30:22 AM
-80.168.63.190
4/18/2006 3:59:14 AM
-80.168.63.190
4/18/2006 3:43:57 AM
-80.168.63.190
2/23/2006 6:41:34 AM
195.226.66.146
List all versions List all versions

RSS feed for the FlexWiki namespace

How To Create A Plug In
.
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.

Not logged in. Log in

Welcome to the home of FlexWiki, an experimental collaboration tool, based on WikiWiki.

This is FlexWiki, an open source wiki engine.

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

Recent Topics