Skip to content
Snippets Groups Projects
Commit 530c8ca9 authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-5862: removed the teaser logic and only load the date through the card header for news node

parent bbd9f7a1
No related branches found
No related tags found
3 merge requests!278ISTWCMS-5862 - m26lebla remove author from news node,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -401,13 +401,7 @@ class UwNodeContent { ...@@ -401,13 +401,7 @@ class UwNodeContent {
// Setup the header content. // Setup the header content.
if ($node_flags['get_header']) { if ($node_flags['get_header']) {
if ($view_mode == 'teaser') { $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
$content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
}
else {
$content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
$content_data['header']['author'] = $this->addToContentData('author', 'field_author');
}
} }
// Get the media. // Get the media.
......
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