silverstripe-blog/docs/en/configuring-widgets.md

19 lines
702 B
Markdown
Raw Normal View History

# 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.
You can enable the widgets by adding the following YML config:
```yaml
2017-09-20 02:15:19 +02:00
SilverStripe\Blog\Model\Blog:
extensions:
2017-09-20 02:15:19 +02:00
- SilverStripe\Widgets\Extensions\WidgetPageExtension
SilverStripe\Blog\Model\BlogPost:
extensions:
2017-09-20 02:15:19 +02:00
- SilverStripe\Widgets\Extensions\WidgetPageExtension
```
Once you have widgets installed you'll see the "Widgets" tab in the content section of your blog.