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 5f87c8f2c21fd6187654ec4d3daaf927cf34e6ac..c1d5cd59df41c111eaeffdc5061a0e6a2da9584a 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 diff --git a/uw_ct_web_page.install b/uw_ct_web_page.install index 12254cfcf09484436194cc71c2e810590a1580a7..ffacc822176d3f84d7a0f67b4e7f4ad39fd35849 100644 --- a/uw_ct_web_page.install +++ b/uw_ct_web_page.install @@ -39,6 +39,11 @@ 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. // Defaulting to have a blank section first. $sections[] = new Section('uw_1_column');