diff --git a/layout/base.py b/layout/base.py index 2834f8e..df17c1e 100644 --- a/layout/base.py +++ b/layout/base.py @@ -109,14 +109,15 @@ class TargetLayoutInstance(NodeLayoutInstance): obj = self.target.context tp = obj.getType() found = False - topLevelLayout = self.context.getMenu() + currentRoot = self.context.getMenu() for n in obj.getClients() + tp.getClients(): if not ILayoutNode.providedBy(n): continue if n.nodeType == 'info' and n.viewName in names: if pageName != (n.pageName or '').strip(): continue - if n.getMenu() != topLevelLayout: + layoutRoot = n.getMenu() + if getName(layoutRoot) != 'default' and layoutRoot != currentRoot: continue layout = region.layouts[n.viewName] li = component.getAdapter(n, ILayoutInstance,