Working with widgets
Widgets are pre-made pieces of functionality or content structures that users can add to their site. Widgets are part of modules, and they need to be prepared by backend developers. You can treat a Widget as a Block with a premade structure that allows the user to change just small pieces of the content without interfering with the HTML structure of the template.
In my professional opinion, widgets are underestimated and should be used more often in regular development, and creating them is not a time-consuming task. Let’s focus on how to use them in terms of frontend development.
We can manage Widgets in the Admin Panel under the CONTENT menu:
Figure 13.9 – Widgets menu
As in every section in the Admin Panel, you will be presented with a grid of already created Widgets, if you have installed the demo content.
I won’t be explaining all the Widgets that are available in the framework. I’ll show how...