Skip to content
Snippets Groups Projects
Commit ea92fd81 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: adding project to media above

parent 3c806183
No related branches found
No related tags found
3 merge requests!284Feature/istwcms 5880 ebremner banners above,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -234,6 +234,7 @@ class UWService implements UWServiceInterface { ...@@ -234,6 +234,7 @@ class UWService implements UWServiceInterface {
'uw_ct_catalog_item', 'uw_ct_catalog_item',
'uw_ct_event', 'uw_ct_event',
'uw_ct_news_item', 'uw_ct_news_item',
'uw_ct_project',
'uw_ct_service', 'uw_ct_service',
'uw_ct_web_page', 'uw_ct_web_page',
]; ];
......
...@@ -675,6 +675,10 @@ class UwNodeContent { ...@@ -675,6 +675,10 @@ class UwNodeContent {
$content_data['content'] = $this->addToContentData('content', 'field_uw_project_summary'); $content_data['content'] = $this->addToContentData('content', 'field_uw_project_summary');
} }
if ($node_flags['get_media']) {
$content_data['media'] = $this->addToContentData('media', NULL);
}
// Get listing image. // Get listing image.
if ($node_flags['get_image']) { if ($node_flags['get_image']) {
$content_data['image'] = $this->addToContentData('image', 'field_uw_project_listing_image'); $content_data['image'] = $this->addToContentData('image', 'field_uw_project_listing_image');
......
...@@ -901,6 +901,7 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, ...@@ -901,6 +901,7 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state,
$remove_hero_image_nodes = [ $remove_hero_image_nodes = [
'web_page', 'web_page',
'catalog', 'catalog',
'project',
'service', 'service',
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment