From be6ac9fce619b468385ddcb6f44dfdd44e49f2e8 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Mon, 17 Oct 2022 09:42:35 -0400 Subject: [PATCH] ISTWCMS-5880: adding contact to media above --- src/Service/UWService.php | 1 + src/Service/UwNodeContent.php | 4 ++++ uw_cfg_common.module | 1 + 3 files changed, 6 insertions(+) diff --git a/src/Service/UWService.php b/src/Service/UWService.php index da15393a..b63cfeaf 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -232,6 +232,7 @@ class UWService implements UWServiceInterface { $preprocess = [ 'uw_ct_blog', 'uw_ct_catalog_item', + 'uw_ct_contact', 'uw_ct_event', 'uw_ct_news_item', 'uw_ct_opportunity', diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php index 80298550..32ec4565 100644 --- a/src/Service/UwNodeContent.php +++ b/src/Service/UwNodeContent.php @@ -572,6 +572,10 @@ class UwNodeContent { $content_data['content'] = $this->addToContentData('content', NULL); } + if ($node_flags['get_media']) { + $content_data['media'] = $this->addToContentData('media', NULL); + } + // Get the footer data. if ($node_flags['get_footer']) { diff --git a/uw_cfg_common.module b/uw_cfg_common.module index f18b8d4a..dddb5d0c 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -901,6 +901,7 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, $remove_hero_image_nodes = [ 'web_page', 'catalog', + 'contact', 'opportunity', 'profile', 'project', -- GitLab