From 3fb809a209373602301237545e268fdfd8f0db3a Mon Sep 17 00:00:00 2001 From: Eric Bremner Date: Thu, 6 Oct 2022 10:20:58 -0400 Subject: [PATCH 1/3] ISTWCMS-5865: adding content moderation to default home page during install --- uw_ct_web_page.install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uw_ct_web_page.install b/uw_ct_web_page.install index 12254cf..391da22 100644 --- a/uw_ct_web_page.install +++ b/uw_ct_web_page.install @@ -39,6 +39,8 @@ function uw_ct_web_page_install() { ], ]); + $node->set('moderation_state', 'published'); + // Variable to hold the sections for this node. // Defaulting to have a blank section first. $sections[] = new Section('uw_1_column'); -- GitLab From 5bfb46fadae2a064f6dd95061167364688ca2ce3 Mon Sep 17 00:00:00 2001 From: Eric Bremner Date: Thu, 6 Oct 2022 11:30:26 -0400 Subject: [PATCH 2/3] ISTWCMS-5865: adding workflows dependency so that features is happy --- .../core.entity_form_display.node.uw_ct_web_page.default.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/install/core.entity_form_display.node.uw_ct_web_page.default.yml b/config/install/core.entity_form_display.node.uw_ct_web_page.default.yml index 5f87c8f..c1d5cd5 100644 --- a/config/install/core.entity_form_display.node.uw_ct_web_page.default.yml +++ b/config/install/core.entity_form_display.node.uw_ct_web_page.default.yml @@ -7,7 +7,9 @@ dependencies: - field.field.node.uw_ct_web_page.field_uw_meta_tags - field.field.node.uw_ct_web_page.layout_builder__layout - node.type.uw_ct_web_page + - workflows.workflow.uw_workflow module: + - content_moderation - field_group - media_library - metatag -- GitLab From acd039495f1e92a88ce8df06ef073f49b552a795 Mon Sep 17 00:00:00 2001 From: Eric Bremner Date: Thu, 6 Oct 2022 15:30:18 -0400 Subject: [PATCH 3/3] ISTWCMS-5865: ensuring that home page is accessible during site install --- uw_ct_web_page.install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uw_ct_web_page.install b/uw_ct_web_page.install index 391da22..ffacc82 100644 --- a/uw_ct_web_page.install +++ b/uw_ct_web_page.install @@ -39,6 +39,9 @@ function uw_ct_web_page_install() { ], ]); + // ISTWCMS-5865: adding the published moderation state + // since we need this for the page to be accessible when + // a site is first installed. $node->set('moderation_state', 'published'); // Variable to hold the sections for this node. -- GitLab