Generally, you operate with the page templates that are based on the default layout file. You modify the default template or create new templates, based on it.
When creating a new project, by default, the selected framework is MVC. You can also work in hybrid mode. For both modes, you do not have to start creating a new template from scratch. You can use the default templates that contain a single placeholder and then modify it further.
Once you select a template and its framework, if you require to base the template on another template in a later point in time, you can select just from the list with templates from the same framework, thus avoiding any shortcomings from switching framework.
You create and manage .NET Core templates in the Templates grid, like all of the other Sitefinity CMS templates, such as MVC and Hybrid.
.NET Core templates are edited with the New page editor of the .NET Core Renderer. To be able to edit the content of a .NET Core template, you must have setup Sitefinity .NET Core Renderer.
If required by your scenario, you still have the option to work with Web Forms templates by configuring which frameworks page templates use. To do this, navigate to Administration » Settings » Advanced » Pages and set the Page templates framework to All.
To create a template via the UI, perform the following:
NOTE: The new template will inherit the framework of the template that it is based on.
Depending on the framework that it is based on, the new template opens for editing in one of the following page editors:
NOTE: To be able to open a .NET Core template for editing, you must have setup Sitefinity .NET Core Renderer.
When creating a page template based on another template, keep in mind the following:
RECOMMENDATION: When you create a nested page template, based on a layout file, we recommend selecting the MVC only option, as there may be potential issues in Web Forms or hybrid modes. For more information about layout base templates, see Create MVC page templates based on layout files.
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important