Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-492

isSelected() support for navigation with 3+ level

    Details

      Description

      Currently, if there are 3 levels of pages (eg. Top Page > Sub Page > Details Page) and a user is on the Details Page, only the Top Page and the Details page will indicate that it's selected. This is accomplished through the NavItem's isSelected() method.

      This improvement adds a new method to NavItem, isChildSelected(), that allows developers to check if Sub Page is selected.

      Usage Example:

      #if ($nav_item.isSelected() || $nav_item.isChildSelected())
      #set ($nav_item_class = "selected")
      #else
      #set ($nav_item_class = "")
      #end

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-ee EE Support
              Reporter:
              samuel.kong Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  5.1 EE SP1 (5.1.4)