Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.4
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Navigation
-
Labels:None
-
Tags:
Description
When creating a menu with Zend_Navigation, it is currently difficult to simply create a menu of items below the current active page, when the minDepth is greater than the depth of the active page.
echo $this->navigation()->menu()->renderMenu(null, array( 'minDepth' => 1, 'maxDepth' => 1, 'ulClass' => 'navigation white', 'onlyActiveBranch' => true, 'renderParents' => false));
This should render a menu of the child pages of the top level of the container, but currently if the active page is one of the root nodes, it will render nothing.
The fix for this requires modifications to Zend_View_Helper_Menu::_renderDeepestMenu(). Unfortunately, this would break BC, because the rendered output would be different for calls to renderMenu() if minDepth/maxDepth is set.
However, it is a bug, and the fix would most likely make the helper behave more like people expect it would. How do we proceed?