Creating Custom Components¶
Plone is a powerful system and it provides many interesting features and function.
To dive into this, we recommend to go through the
Mastering Plone 5: Development of the training.
For theming the most relevant part are the following components, which render some parts of Plone, you may want to customize or build new once.
In Plone a view usually consists of multiple components, a Python class based on BrowserView and a template which renders the markup. Is is possible to have a template which is only a view.
It is also possible to have a view which has no template, but renders the output by it self, as JSON for example.
For more details about views and there possibilities see the view sections of the
Mastering Plone 5: Development chapters.
Viewlets are small pieces which are rendered inside a view. The are registered for a ordered ViewletManager, which renders all Viewlets in the given order. You can change the order even TTW (Through-The-Web) or via configuration.
A Viewlet consists of a Viewlet Python class and a template.
Plone has default Viewlets and ViewletManagers like ContentAbove and BelowContent which you can use to register small pieces of functionality.
For an overview of existing Viewlets and ViewletManagers look at the
For more details about Viewlets/ViewletManagers and there possibilities see the Viewlets sections of the Mastering Plone 5: Development chapters.