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 comes with a set of HTML grid controls that help you customize your layout by dropping them on your pages. When you install Feather, in Sitefinity CMS toolbox, you can see new section named Bootstrap grid widgets.
These layout widgets are shipped with the resource packages. The widgets for every package are designed to follow the recommendations of the particular frontend framework.
For more information about resource packages in Feather, see https://github.com/Sitefinity/feather-packages and Feather: Resource packages overview.
You can work with a variety of grid widgets, shipped with the Bootstrap package out-of-the-box. For a list of the default Bootstrap grid widgets, see the GitHub repository. Each grid widget covers a basic grid column configuration via the Bootstrap grid CSS classes and markup. For more information, see Bootstrap grid.
For example, the grid-3+9 widget defines a Bootstrap row with two columns, the first one occupying 3 portions and the second one - 9 portions of the row. For details, see the Bootstrap grid-3+9 template file.
The following code sample demonstrates the template of the grid-6+6 widget:
In the code above:
You can rename a grid widget by renaming the corresponding file. Feather automatically renames the widget in the toolbox and on the pages where it is used.
Based on the specifics of your scenario, you may need to modify a grid widget or you need to create a custom one.
To create a grid widget:
To modify an existing grid, simply modify its markup, based on your requirements.
In case you delete a grid widget file from the file system, an error message appears on the frontend. It informs that the template cannot be found. The widgets can no longer be displayed.
The responsive design of Feather grid widgets depends on your implementation of the CSS framework you are using in your package. For example, the Bootstrap grid widgets are responsive because their markup is identical to the one of the Bootstrap grid system, which is responsive by default. For more information, see Bootstrap Grid system.
NOTE: The Bootstrap responsive design features are not supported if you are working with the Minimal resource package.
You can leverage an additional responsive feature, included in the Feather Navigation widget. For small devices, you can display the navigation in a <select> tag. To do so:
NOTE: The template is usually located at /Bootstrap/MVC/Views/Navigation/NavigationView.Horizontal.cshtml
/Bootstrap/MVC/Views/Navigation/NavigationView.Horizontal.cshtml
@Html.Action("GetView", new { viewName = "Dropdown", model= Model})
<select>
/Bootstrap/MVC/Views/Navigation/Dropdown.cshtml
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