Content and functionality of Sitefinity CMS pages are defined through widgets. Anything you want your page to do, you must do it with a widget. Widgets allow you to display the content you create and configure how you want your content displayed. Sitefinity CMS comes with a set of built-in widgets, which can be directly used in the pages you create. Such widgets are, for example, the News, Image gallery, and Video gallery.
To use widgets, you simply drop them on the page (in page content editing mode) and configure them to display already existing content. You can configure widgets to display different parts of the content by combining widgets and by tagging and classifying content.
Widgets have the purpose of making available specific content and functionality to the frontend user, or visitor, of your website. The widget frontend is basically an HTML representation of the widget functionality, for example, buttons or input fields, that is, the frontend functionality that the user interacts with. The backend of a widget includes its business logic and configuration, as well as the widget template and widget designer.
Widgets have properties that you set per widget and that modify the functionality of the particular widget. If you want to display blog posts using the Blog posts widget, you need to tell the widget which blog to use, how many posts to display on one page, and how to display them. You configure a widget through its widget designer, that is, in the Edit mode of widgets. For more information, see Overview: Widget designers.
With widget templates you can change the look of the build-in Sitefinity CMS widgets – Blog posts, News, Events, Generic content, Images, Videos, and so on. For more information, see Overview: Widget templates.
Apart from modifying Sitefinity CMS built-in MVC widgets, you can also create your own widgets and use them side by side with the default ones. That is, implement new widget to specifically serve your business case needs and functionality requirements by implementing your own custom logic. For more information, see Create widgets.
You can also use Sitefinity CMS VSIX to create and customize MVC widgets. For more information, see Sitefinity CMS VSIX.
For more information about Web Forms widgets in Sitefinity CMS, see Web Forms: Widgets overview.
Technically speaking, Sitefinity CMS widgets leverage the ASP.NET MVC technology for a simplified development, enabling you to take control of markup. You benefit from:
When working with and developing widgets in Sitefinity, you need to make sure you are acquainted with the principles of MVC development. Widgets follow the model-view-controller architectural pattern:
Widget implementation defines what content is displayed and how.
The designer defines content configuration.
Defines the layout of the widget.
Renders the layout of pages, on which you drop widgets and thus their position on the page.
Back To Top