src/pyams_content/features/footer/skin/__init__.py
changeset 762 2df58f4a11df
parent 729 f6594cea3d5a
child 801 c7585a24ca8b
--- a/src/pyams_content/features/footer/skin/__init__.py	Wed Jun 27 15:32:31 2018 +0200
+++ b/src/pyams_content/features/footer/skin/__init__.py	Wed Jun 27 15:33:12 2018 +0200
@@ -24,6 +24,7 @@
 # import packages
 from pyams_content.features.renderer.skin import BaseContentRenderer
 from pyams_utils.adapter import adapter_config
+from pyams_utils.traversing import get_parent
 from pyramid.decorator import reify
 
 from pyams_content import _
@@ -39,7 +40,8 @@
         context = self.request.annotations.get(DISPLAY_CONTEXT)
         if context is None:
             context = self.context
-        settings = IFooterSettings(context)
+        target = get_parent(context, IFooterTarget)
+        settings = IFooterSettings(target)
         while settings.inherit:
             settings = IFooterSettings(settings.parent)
         return settings.settings