Skip to content

Commit 2a6e0f0

Browse files
adriendupuisreithormnocon
authored
Enhance create page blocks doc (#2514)
* create_custom_page_block.md: Highlight that new block must be enabled in BO * data_migration_actions.md: Add `add_block_to_available_blocks` example --------- Co-authored-by: Thorsten Reiter <[email protected]> Co-authored-by: Marek Nocoń <[email protected]>
1 parent 0b4f8c2 commit 2a6e0f0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/content_management/data_migration/data_migration_actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ The following migration actions are available out of the box:
5858
- `remove_drafts` (Content type Update)
5959
- `remove_field_by_identifier` (Content type Update)
6060
- `unassign_content_type_group` (Content type Update)
61+
- `add_block_to_available_blocks` (Content type Update)
6162
- `assign_role_to_user` (Role Create / Update)
6263
- `assign_role_to_user_group` (Role Create / Update)
6364
- `assign_user_to_role` (User Create / Update)
@@ -103,6 +104,7 @@ mode: Update
103104
- { action: unassign_content_type_group, value: 'Content' }
104105
- { action: remove_field_by_identifier, value: 'short_title' }
105106
- { action: remove_drafts, value: null }
107+
- { action: add_block_to_available_blocks, fieldDefinitionIdentifier: 'page', blocks: ['event'] }
106108
```
107109

108110
### Roles

docs/content_management/pages/create_custom_page_block.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,8 @@ The following UDW configuration is used so only an `event` typed content item ca
132132

133133
For more information, see [UDW configuration](browser.md#udw-configuration).
134134

135-
Your custom page block is now ready.
136-
Before you can use it in Page Builder, you must [enable it in Page field settings]([[= user_doc =]]/content_management/configure_ct_field_settings/#block-display).
135+
Your custom page block is now registered in the system.
136+
137+
!!! caution
138+
139+
To use the new block in Page Builder, add it to the list of available blocks in a given content type's settings. This can be done manually in [Page field settings]([[= user_doc =]]/content_management/configure_ct_field_settings/#block-display) or by using the migration action [`add_block_to_available_blocks`](data_migration_actions.md#content-types).

0 commit comments

Comments
 (0)