Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pboivin committed Aug 3, 2022
1 parent ba1626d commit c0cb245
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,25 @@ We want to show the `block_editor` field on `legal` pages as well as custom page
@stop
```

### Named Block Editors

The above configuration is used for modules with a single block editor (`default`). Use the following configuration for multiple block editors:

```php
// ...

[
'value' => 'custom_page',
'label' => 'Custom Page',
'block_selection' => [
'default' => ['text', 'banner', 'text'], // Prefill the default block editor.
'header' => ['page-header'], // Prefill the `header` named block editor.
],
],

// ...
```

## Custom Template Field

You can customize the `template` field name and label with the `$templateField` property in your Model:
Expand Down

0 comments on commit c0cb245

Please sign in to comment.