How to add a plugin

Three are two options for creating new plugins:

Create a plugin from scratch

You can create a Visual Studio project, include a single class in it that implements the IPlugin interface (located in LSOne.ViewCore.Interfaces) and then take it from there. Maybe you are a person who likes to start from zero, but if you want to get a running start we recommend the alternative below.

Copy another plugin

The fastest way to create a plugin is to copy another plugin. In the development pack we provide a sample plugin. This plugin is called HelloWorld and is located under the Training_materials folder in the development package. This plugin adds its self to a number of Site Manager locations and you can take a look at the code to see how it works.

You can either copy the Hello World plugin or the another suitable plugin from the development package to get started.

The Hello World plugin is more of a shell plugin with minimal functionality while other plugins might offer more functional examples such as how to access data from a database.

The biggest benefit of copying the Hello world plugin is that you develop your plugin functionality yourself while looking at the similar functionality of the demo plugin.

As an example you can copy the Hello World plugin, rename it and clean up the code to get a clean slate. To do this follow the these steps:

Next you should have a look at the Site Manager Navigation