diff --git a/docs/en/getting-started.md b/docs/en/getting-started.md index 2b0353a..058fda0 100644 --- a/docs/en/getting-started.md +++ b/docs/en/getting-started.md @@ -156,3 +156,14 @@ An example widget is below: $Title <% end_control %> +## Limiting Allowed Widgets for a Pagetype + +You can lock down a particular `WidgetAreaEditor` to only allow adding certain widgets by passing them as a second parameter. + +**GreatPage.php** + + :::php + $fields->addFieldToTab( + 'Root.Widgets', + new WidgetAreaEditor('PhenomenalWidgetArea', ['ParticularlyEpicWidget', 'LessGreatWidget']) + );