Widgets Plugin
The widgets plugin displays widgets data as defined in the Content > Widgets section of the control panel.
widgets:area
{{ widgets:area }}
Displays all widgets in a widget area.
Attributes
| Name | Default | Required | Description |
|---|---|---|---|
| slug | None | Yes | Slug for the widget area as defined in CP > Content > Widgets |
Example
{{ widgets:area slug="sidebar" }}
widgets:instance
{{ widgets:instance }}
Displays a specific widget instance.
Attributes
| Name | Default | Required | Description |
|---|---|---|---|
| id | None | Yes | ID of the widget instance given to you after installing a widget in CP > Content > Widgets. |
Example
{{ widgets:instance id="5" }}
