2015-12-07 23:45:09 +01:00
|
|
|
# Configuring Widgets
|
|
|
|
|
2017-09-20 02:15:19 +02:00
|
|
|
The blog module comes bundled with some useful widgets. To take advantage of them, you'll need to install the
|
|
|
|
[SilverStripe widgets module](https://github.com/silverstripe/silverstripe-widgets). Widgets are totally optional -
|
|
|
|
so your blog will work just fine without having widgets installed.
|
2015-12-07 23:45:09 +01:00
|
|
|
|
|
|
|
You can enable the widgets by adding the following YML config:
|
|
|
|
|
|
|
|
```yaml
|
2017-09-20 02:15:19 +02:00
|
|
|
SilverStripe\Blog\Model\Blog:
|
2015-12-07 23:45:09 +01:00
|
|
|
extensions:
|
2017-09-20 02:15:19 +02:00
|
|
|
- SilverStripe\Widgets\Extensions\WidgetPageExtension
|
|
|
|
SilverStripe\Blog\Model\BlogPost:
|
2015-12-07 23:45:09 +01:00
|
|
|
extensions:
|
2017-09-20 02:15:19 +02:00
|
|
|
- SilverStripe\Widgets\Extensions\WidgetPageExtension
|
2015-12-07 23:45:09 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Once you have widgets installed you'll see the "Widgets" tab in the content section of your blog.
|