From 57c2a7bccd779e26a6f37fa5ede2c3e269dff035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20B=C3=B6sch?= Date: Thu, 21 May 2015 14:12:01 +0200 Subject: [PATCH] Removed the summary from the detail page --- .../handler/cms_node_type_webform_manager.e | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/modules/node/handler/cms_node_type_webform_manager.e b/modules/node/handler/cms_node_type_webform_manager.e index e3d8316..697e73b 100644 --- a/modules/node/handler/cms_node_type_webform_manager.e +++ b/modules/node/handler/cms_node_type_webform_manager.e @@ -236,17 +236,21 @@ feature -- Output end s.append ("") - if attached a_node.summary as l_summary then - s.append ("

") - if attached node_api.cms_api.format (a_node.format) as f then - s.append (f.formatted_output (l_summary)) - else - s.append (a_response.formats.default_format.formatted_output (l_summary)) - end - s.append ("

") + -- We don't show the summary on the detail page, since its just a short view of the full content. Otherwise we would write the same thing twice. + -- The usage of the summary is to give a short overview in the list of nodes or for the meta tag "description" - end +-- if attached a_node.summary as l_summary then +-- s.append ("

") +-- if attached node_api.cms_api.format (a_node.format) as f then +-- s.append (f.formatted_output (l_summary)) +-- else +-- s.append (a_response.formats.default_format.formatted_output (l_summary)) +-- end + +-- s.append ("

") + +-- end if attached a_node.content as l_content then s.append ("

")