-
Sub-task
-
Resolution: Fixed
-
Neutral
-
None
-
-
5.3 Sprint 5, 5.3 Sprint 6
Steps to reproduce:
- Create variant of a home page.
- Preview this variant.
- Navigation contains only active page.
- home0
- variant0
Explanation:
public static Node findParentWithTemplateCategory(Node pageNode, String templateCategory) throws RepositoryException { ... if (TemplateCategoryUtil.hasTemplateOfCategory(current, templateCategory)) { return current; //returns variant which hasn't child pages to add to navigation if it's home page } ... current = current.getParent(); //but if it's not home then the parent of real node (not variant) is returned, so it works for other then home pages, but that's only luckily consequence } return null; }
Custom info.magnolia.p13n.decoration.P13nNodeWrapper.getNodes() has to be implemented.