From 720b62e5290fa68058e465d9515d3a7c991b7e49 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:52:30 +0200 Subject: [PATCH 1/4] create_custom_page_block.md: Highlight that new block must be enabled in BO --- docs/content_management/pages/create_custom_page_block.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/content_management/pages/create_custom_page_block.md b/docs/content_management/pages/create_custom_page_block.md index f99965830b..f9d1bb62ab 100644 --- a/docs/content_management/pages/create_custom_page_block.md +++ b/docs/content_management/pages/create_custom_page_block.md @@ -132,5 +132,8 @@ The following UDW configuration is used so only an `event` typed content item ca For more information, see [UDW configuration](browser.md#udw-configuration). -Your custom page block is now ready. -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). +Your custom page block is now ready. + +!!! caution + + 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). From 5f8412a4bc8ccb94ea1bd242e4816092e771ccb1 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 8 Oct 2024 23:45:15 +0200 Subject: [PATCH 2/4] data_migration_actions.md: Add add_block_to_available_blocks example --- .../content_management/data_migration/data_migration_actions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content_management/data_migration/data_migration_actions.md b/docs/content_management/data_migration/data_migration_actions.md index 19089e376c..09dece13d7 100644 --- a/docs/content_management/data_migration/data_migration_actions.md +++ b/docs/content_management/data_migration/data_migration_actions.md @@ -58,6 +58,7 @@ The following migration actions are available out of the box: - `remove_drafts` (Content type Update) - `remove_field_by_identifier` (Content type Update) - `unassign_content_type_group` (Content type Update) +- `add_block_to_available_blocks` (Content type Update) - `assign_role_to_user` (Role Create / Update) - `assign_role_to_user_group` (Role Create / Update) - `assign_user_to_role` (User Create / Update) @@ -103,6 +104,7 @@ mode: Update - { action: unassign_content_type_group, value: 'Content' } - { action: remove_field_by_identifier, value: 'short_title' } - { action: remove_drafts, value: null } + - { action: add_block_to_available_blocks, fieldDefinitionIdentifier: 'page', blocks: ['event'] } ``` ### Roles From b37887fabf9ce201a7c65d4dae4c29ede2927c5a Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 9 Oct 2024 09:56:08 +0200 Subject: [PATCH 3/4] Update docs/content_management/pages/create_custom_page_block.md Co-authored-by: Thorsten Reiter <34274688+reithor@users.noreply.github.com> --- docs/content_management/pages/create_custom_page_block.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content_management/pages/create_custom_page_block.md b/docs/content_management/pages/create_custom_page_block.md index f9d1bb62ab..a641df0e92 100644 --- a/docs/content_management/pages/create_custom_page_block.md +++ b/docs/content_management/pages/create_custom_page_block.md @@ -136,4 +136,4 @@ Your custom page block is now ready. !!! caution - 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). + Before you can use the block in Page Builder, it needs to be enabled. 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). From 59ddbeefce44b33e6fb397aa6bcd4a2f0986aab9 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:52:35 +0200 Subject: [PATCH 4/4] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marek NocoĊ„ --- docs/content_management/pages/create_custom_page_block.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content_management/pages/create_custom_page_block.md b/docs/content_management/pages/create_custom_page_block.md index a641df0e92..f2bee4a8dc 100644 --- a/docs/content_management/pages/create_custom_page_block.md +++ b/docs/content_management/pages/create_custom_page_block.md @@ -132,8 +132,8 @@ The following UDW configuration is used so only an `event` typed content item ca For more information, see [UDW configuration](browser.md#udw-configuration). -Your custom page block is now ready. +Your custom page block is now registered in the system. !!! caution - Before you can use the block in Page Builder, it needs to be enabled. 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). + 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).