-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 5.1 EE (5.1.3)
-
Fix Version/s: 5.1 EE SP1 (5.1.4)
-
Component/s: Legacy Components > API, Themes
-
Labels:None
-
Environment:All
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
- is related to
-
LPS-1188 3 Level of pages are not supported in themes
- Closed