• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.0
    • None
    • Integration
    • 5.3 Sprint 5, 5.3 Sprint 6

      Steps to reproduce:

      1. Create variant of a home page.
      2. Preview this variant.
      3. 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.

            rkovarik Roman Kovařík
            rkovarik Roman Kovařík
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: