This section provides a Visual Studio template that will get you up to speed with creating your own Sitefinity pluggable module. The template will create the project for you
and all rudimentary classes that every module needs. The assumption of the bare-bones module is that the data layer will NOT be created with Nolics.NET, but rather in some other
way (such as LINQ to SQL, Subsonic, ADO.NET, XML and so on).
 |
You can download the Visual Studio template from HERE. |
How to Install the Template using Visual Studio?
- Download the Sitefinity_Pluggable_Module.zip file.
 |
Do not unzip the file! |
- Navigate to:
- Windows XP: My Documents/Visual Studio 2008/Templates/Project Templates/Visual C# and paste the Sitefinity_Pluggable_Module.zip
file
-
Windows Vista: User/Documents/Visual Studio 2008/Templates/Project Templates/Visual C# and paste the
Sitefinity_Pluggable_Module.zip file
 |
You can use the template with Visual Studio 2005 as well. In that case navigate to Visual Studio 2005
folder. |
- Open Sitefinity Web site in Visual Studio.
- Add new project to solution
- Select Visual C# as project type
- Select Sitefinity Pluggable Module from "My templates"
- Follow the instructions file that will open once the project is added
How to Modify the Template?
The template you will download will have some preconfigured settings, like moduleName and moduleTitle, which are set to "Sample module". To
configure the template you can do the following:
- Make sure you do steps 1 and 2 from previous paragraph
- Unzip the Sitefinity_Pluggable_Module.zip file
- Open MyTemplate.vstemplate file (it’s an XML file so you can open it in Notebook or Visual Studio)
- Scroll down to CustomParameters section
- Change the values of the custom parameters as you see fit
- Zip all the files again
 |
Make sure you are zipping all the files and folders, and not a folder containing all the files and folders. |
- Go from steps 3-6 in the previous paragraph
See Also