To create a Trakopolis Plug-in, you create a MVC application with the Controller and View you wish to include in Trakopolis.

Follow these steps to create a Trakopolis MVC plug-in:

  1. Open Visual Studio 2013/2015
  2. Create a new Trakopolis Plug-in project (File, New, Trakopolis Plugin ASP.NET MVC 5 Web Application).  If you do not have the "Trakopolis Plugin ASP.NET MVC 5 Web Application" Visual Studio template, you can install it by clicking the link below:  Trakopolis Plugin ASP.NET MVC 5 Web Application Visual Studio 2013/2015 Template
  3. Type in a name for your project and click "OK".
  4. The plug-in will retrieve data from Trakopolis via the Trakopolis OAuth2 API. Enter your client identifier and client secret. If you do not have client credentials, you can request one by emailing lhotte@trakopolis.com. You should use the production URLs https://api.trakopolis.com.
  5. Click "OK".

You can now run your project. It will display a list of assets from the division associated with the API key and secret.

Create a new controller and view for your plug-in (do not use the home controller), and give it a name related to your plugin (eg. AbcController). Please use the Trakopolis.Plugin.<PluginName> namespace for your plugins. Place any imaget files in a Trakopolis.Plugin.<PluginName> folder directly under Content, and any custom javascript files in a Trakopolis.Plugin.<PluginName> directory under Scripts.

To make your controller visible from the shell application that displayes the plugins, please add the following attributes to the controller.

[Export(typeof(IController))]
 [ExportMetadata("controllerName",
 "<PluginName>")]
 [PartCreationPolicy(CreationPolicy.NonShared)]
 <PluginName>Controller:
 TrakController{
 {
 ...					
This language is not supported or no code example is available.

At this point you can customize the view and controller to create your plugin.