diff --git a/src/Service/UWService.php b/src/Service/UWService.php index 38d5e60f8392878f91ef8955566add368a76f451..da15393a2e2a61ea90f7a564911495f90872c6b0 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -234,6 +234,7 @@ class UWService implements UWServiceInterface { 'uw_ct_catalog_item', 'uw_ct_event', 'uw_ct_news_item', + 'uw_ct_opportunity', 'uw_ct_profile', 'uw_ct_project', 'uw_ct_service', diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php index fb75d16fc692cc6e1787613a19dd15960b863e9c..8029855098e3131d567606cce6febf719bf0558b 100644 --- a/src/Service/UwNodeContent.php +++ b/src/Service/UwNodeContent.php @@ -833,6 +833,10 @@ class UwNodeContent { $content_data['content'] = $this->addToContentData('content', 'field_uw_opportunity_position'); } + if ($node_flags['get_media']) { + $content_data['media'] = $this->addToContentData('media', NULL); + } + return $content_data; } diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 7ce56ccf79b11667b04e21491043d1937bf2c8e5..f18b8d4a997f8a24233e722355c43d70e3953b16 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', + 'opportunity', 'profile', 'project', 'service',