Thunder: Create a custom module project
To create new static custom module, perform the following:
- Open your Sitefinity CMS solution in Visual Studio.
- In the Solution Explorer, open the context menu of the solution and click Add » New Project…
- In the left pane, select Visual C# » Sitefinity CMS and in the central pane, select Sitefinity CMS Custom Module.
- Enter a name for your Sitefinity CMS custom module and click OK.
The Create a custom module wizard appears. - Click Next and enter the new custom module name and description
- Choose whether you want to use OpenAccess or Entity Framework for your data access layer.
Thunder helps you set all the data providers, decorators, and managers.
For more information, see Thunder: Develop a custom module using an OpenAccess data provider and Thunder: Develop a custom module using an Entity Framework data provider. - Select what you want to use to generate the Master-detail backend views of your custom content type.
You can choose between Kendo UI and pure Web Forms using RadControls.
If you are new to Sitefinity CMS development, Thunder is doing all the Sitefinity CMS code for you. If you choose None for the views, Thunder generates an empty backend page and you can create your own custom administration. - If you already have Nuget Package Restore configured for your solution, deselect Enable Nuget Package Restore in the current solution.
- Click Next and enter the name of your first custom content type.
The developer name of the content type is auto-generated and you can change it. It is used in the generated code.
- Create the fields that your content type requires, using the Add… button.
If you create, for example, a DateTime field, Thunder generates a calendar control that is mapped to this field in the views. - Click Done.
NOTE: While developing your custom module, you can add another custom content type at any time, using the Sitefinity CMS Custom Content Type item template. To do this, in the context menu of your custom module project, click Add » New Item…In the left pane, select Visual C# » Sitefinity CMS and add new Sitefinity CMS Custom Content Type.