Skip to content
Snippets Groups Projects
Commit 9f86b54d authored by Eric Bremner's avatar Eric Bremner Committed by Eric Bremner
Browse files

ISTWCMS-4704: udpating getting node data to exclude title on node page

parent a2c6d86f
No related branches found
No related tags found
1 merge request!112Feature/istwcms 4704 m26lebla ebremner content types
......@@ -112,6 +112,7 @@ class UWService implements UWServiceInterface {
$get_footer = FALSE;
$get_image = FALSE;
$get_content = FALSE;
$get_title = TRUE;
// Setup flags based on teaser content argument.
if ($content == 'all') {
......@@ -122,6 +123,10 @@ class UWService implements UWServiceInterface {
if ($view_mode == 'teaser') {
$get_image = TRUE;
}
if ($view_mode == 'full') {
$get_title = FALSE;
}
}
else {
if ($content == 'header') {
......@@ -145,7 +150,7 @@ class UWService implements UWServiceInterface {
];
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'url' => TRUE,
'date' => $get_header ? 'field_uw_blog_date' : NULL,
'author' => $get_header ? TRUE : NULL,
......@@ -165,7 +170,7 @@ class UWService implements UWServiceInterface {
];
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'url' => TRUE,
'date' => $get_header ? 'field_uw_event_date' : NULL,
'sources' => $get_image ? 'field_uw_event_listing_page_img' : NULL,
......@@ -183,7 +188,7 @@ class UWService implements UWServiceInterface {
];
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'url' => TRUE,
'date' => $get_header ? 'field_uw_news_date' : NULL,
'sources' => $get_image ? 'field_uw_news_listing_page_image' : NULL,
......@@ -195,7 +200,7 @@ class UWService implements UWServiceInterface {
case 'uw_ct_web_page':
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'content' => $get_content ? 'layout_builder__layout' : NULL,
];
break;
......@@ -203,7 +208,7 @@ class UWService implements UWServiceInterface {
case 'uw_ct_catalog_item':
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'content' => $get_content ? 'layout_builder__layout' : NULL,
];
break;
......@@ -211,7 +216,7 @@ class UWService implements UWServiceInterface {
case 'uw_ct_contact':
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'sub_title' => $get_header ? 'field_uw_ct_contact_title' : NULL,
'affiliation' => $get_header ? 'field_uw_ct_contact_affiliation' : NULL,
'image' => $get_header ? 'field_uw_ct_contact_image' : NULL,
......@@ -235,7 +240,7 @@ class UWService implements UWServiceInterface {
];
$content_data = [
'title' => $get_header ? TRUE : NULL,
'title' => $get_title ? TRUE : NULL,
'sub_title' => $get_header ? 'field_uw_ct_profile_title' : NULL,
'affiliation' => $get_header ? 'field_uw_ct_profile_affiliation' : NULL,
'content' => $get_content ? 'field_uw_profile_summary' : NULL,
......
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