Updated internal content link summary info adapter
authorThierry Florac <thierry.florac@onf.fr>
Mon, 18 Mar 2019 11:57:49 +0100
changeset 427 e2f6233f9185
parent 426 bd5430acb9d4
child 428 c9980dd1edc0
Updated internal content link summary info adapter
src/pyams_default_theme/shared/site/link.py
--- a/src/pyams_default_theme/shared/site/link.py	Mon Feb 18 16:15:17 2019 +0100
+++ b/src/pyams_default_theme/shared/site/link.py	Mon Mar 18 11:57:49 2019 +0100
@@ -56,6 +56,8 @@
 
     @property
     def header(self):
+        if not self.context.show_header:
+            return None
         header = II18n(self.context).query_attribute('navigation_header', request=self.request)
         if (not header) and (self.target_info is not None):
             header = self.target_info.header