To register sections in layout files, you use the @Html.Section method. @Html is an ASP.NET MVC helper method. For more information, see HTMLHelper methods. Section method is part of the Feather helper methods inside the Telerik.Sitefinity.Frontend assembly.
You can place the section anywhere on your layout file. Afterwards it will be replaced by all referenced resources for that section. The following code creates a new section:
Regardless of the position of the resources, registered via the @Html.Script and @Html.StyleSheet helper methods, they will be rendered inside this section. This means that you can register resources above the section and still have them in the correct place when the page is rendered.
For more information, see Feather: Refer to resources inside views.
NOTE: If a resource is registered to render in a specific section and this section is afterwards renamed or deleted, the resource registration will throw an exception.
If you use the standard feather resource packages, the following sections are available out-of-the-box:
IMPORTANT: We recommend not to remove those sections.
Back To Top