Simple Intra-Site module is an Intra-Site module implementation of the Contacts module. This module does not implement provider model pattern or security and is meant to
demonstrate quick and simple way to create new modules for Sitefinity.
For data access, this sample module uses SqlDataSource controls. This, of course, means that you will need to create the database tables manually (as opposed
to Nolics.NET forward engineering feature).
What is Supplied in This Sample?
In the App_Code folder you will find:
- ContactsModule.cs – the main module class
- IContactsControlPanel.cs – interface mandating some members on Contacts Control Panel class
In App_Data folder you will find the Sitefinity.mdf database – the sample database used for this project. The two important tables in this
database are:
- sample_Contacts – table holding the contacts data
- sample_Departments – table holding the departments data
In the ContactsModule folder you will find the user interface elements of Contacts module:
-
Admin folder – user controls for admin side of the module
- ControlPanel.ascx and ControlPanel.ascx.cs – user control representing Control panel
- CommandPanel.ascx and CommandPanel.ascx.cs – user control representing Command panel
-
Scripts folder – external java script files used by the module
- CommandPanel.js – implements certain client-side functionalities of Departmens treeview
- ContactsList.ascx and ContactsList.ascx.cs – represents public control for displaying list of controls
- SingleContact.ascx and SingleContact.ascx.cs – represents public control for displaying single contact
How to Install the Sample?
- Create a new Sitefinity Web site.
- Download the sample code from here.
- Copy the App_Code folder from the sample to your Web site.
- Copy the Sitefinity.mdf database from App_Data folder from the sample to the App_Data folder in your Web site.
- Copy the ContactsModule folder from the sample to your folder.
- Run the Web site.
See Also