diff --git a/src/Service/UWService.php b/src/Service/UWService.php index da15393a2e2a61ea90f7a564911495f90872c6b0..b63cfeaf2a3e10a270ed4b5c43261690aa79ab8b 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 8029855098e3131d567606cce6febf719bf0558b..32ec45654bbb2adefdf65526bb886b4e5197dcb8 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 f18b8d4a997f8a24233e722355c43d70e3953b16..dddb5d0ca8f941babff690bd0ffe22eaa58cc6c9 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',