Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-118034

Custom navigation menu items does not respect parent-child hierarchy

    Details

      Description

      Issue

      When using a custom navigation menu with parent pages, the parent/child structure from the custom navigation menu is not taken into account. Instead, the original page hierarchy of the site is used.

      Steps to Reproduce

      1. Create Public pages called 'Parent 1', 'Parent 2', and 'Child 2'
      2. Under 'Parent 1' create a child page called 'Child 1'
      3. Under 'Child 1' create a child page called 'Child Child 1'
      4. Create a new Navigation Menu called 'Custom Menu'
      5. Add pages 'Parent 1', 'Parent 2',  'Child 1,' 'Child 2', and 'Child Child 1' to the custom navigation menu and structure the pages in the following manner:
        • Parent 1
          • Child 1 - child page of Parent 1
          • Child 2 - child page of Parent 1
        • Parent 2
          • Child Child 1 - child page of Parent 2
      6. Go back to the home page and configure the Navigation Menu portlet to use the 'Custom Menu'
      7. Under Display Template, choose 'Pills Stacked'
      8. Start selecting items in the Custom Navigation menu

      Expected Behavior: Selecting items under 'Parent 1' should mark 'Parent 1' as selected. This should also be the case for 'Parent 2' when selecting 'Parent 2' items
      Actual Behavior: Selecting 'Child 2' does not mark 'Parent 1' as active. Selecting 'Child Child 1' marks 'Parent 1' as selected instead of 'Parent 2'

      Testing

      branch: reproduced

      72x hash: 906ea661bbf62bfb65488563d88f2697ddf17de5
      

      master: reproduced

      master hash: 0d329acd58e7487eba8f40d6350fa1d737c0ad02

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              kevin.lee Kevin Lee
              Participants of an Issue:
              Recent user:
              Javier Moral
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 20 weeks, 4 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP9
                  7.2.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  7.3.X
                  Master