From e81c17577e17ffad98b530d6487d8256c56fa04f Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Fri, 12 Nov 2021 22:29:54 +0000 Subject: [PATCH] ISTWCMS-5195: fixing display title --- src/Service/UwNodeContent.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php index 0d2fdec7..d29d2fe8 100644 --- a/src/Service/UwNodeContent.php +++ b/src/Service/UwNodeContent.php @@ -120,7 +120,7 @@ class UwNodeContent { $node_flags['get_footer'] = FALSE; $node_flags['get_image'] = FALSE; $node_flags['get_content'] = FALSE; - $node_flags['get_title'] = TRUE; + $node_flags['get_title'] = FALSE; $node_flags['get_hero'] = FALSE; $node_flags['get_listing_image'] = FALSE; @@ -131,11 +131,8 @@ class UwNodeContent { $node_flags['get_content'] = TRUE; if ($view_mode == 'full') { + $node_flags['get_title'] = TRUE; $node_flags['get_hero'] = TRUE; - - if (in_array($node->getType(), array_keys($hero_image))) { - $node_flags['get_title'] = FALSE; - } } elseif ($view_mode == 'teaser') { $node_flags['get_footer'] = FALSE; -- GitLab