-
Task
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-72396-master -
-
3
-
Navigation push 5, Navigation push 6
Sometimes we want to highlight a tab in one of the navigation views when it does not match the set url for that navigation node.
Currently making this work requires a lot of additional code and overwriting the views.
To try and help third party developers (and ourselves) let's provide a simple method that can be called to set the active tab.
Something like:
$PAGE->set_secondary_active_tab($navkey);
|
Where the navkey is the key given to the node that represents the tab we want active.
This could be useful for the primary navigation as well.