Application structure
Application file structure
When you create your widgets and layout files, you place them in folders under your Renderer project's root folder. We recommend having a structure similar to the following:
Project template
You can use the project template, provided in Sitefinity's GitHub repository to get you started with the overall structure of the Renderer project.
- The overall project folder structure is configured for developing with the Sitefinity ASP.NET Core Renderer.
- The required service registrations and pipeline configurations are added to the
Program.cs
file.
- There is a sample layout file included, which has examples for referencing JavaScript and CSS files.
- The launch settings file is configured to host the application with ports 5000 for HTTP and 5001 for HTTPS.
Use the template
To use the template to start your development, perform the following:
- Download the Starter template from Sitefinity's GitHub repository.
- Open the project in Visual Studio.
- In the
appsettings.json
file, in "Sitefinity"
section, change the "Url"
to point to your Sitefinity CMS application.