IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
Feather provides the functionality to use MVC layout files in Sitefinity CMS page templates. To take advantage of this you have to create a file with specific structure in a specific folder.
To create layout files that are usable by Feather, perform the following:
NOTE: You can also create the layout file in the root folder of your project: ~/MVC/Views/Layouts. For more information, see Feather: Priorities for resolving views.
Name the file in the same way that you named your page template. For example, if the page template is named mypagetemplate, you must name of the layout file mypagetemplate.cshtml
NOTE: The file extension of the layout file depends on the type of view engine you are using. For example, when using Razor view engine, you need to have a .cshtml layout file extension.
NOTE: Replace all special characters in the file name with an underscore “_”.
Open the layout file you created and paste the following markup:
using
Telerik.Sitefinity.frontend.Mvc.Helpers
<!DOCTYPE html>
@Html.SfPlaceHolder()
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important