Problem/Motivation

When the menu block starting level is set to follow the active menu item, at most it will show three levels of menu:

  1. The active menu item's parent is displayed as a block title.
  2. The active menu item and its siblings are displayed in a list.
  3. Any children of the active menu item are displayed as a sub-list.

Sometimes it is desirable to show more menu levels and allow the active menu item to drift further down the list. For instance, take the following menu structure:

  • item 1
    • item 1.1
    • item 1.2
      • item 1.2.1
        • item 1.2.1.1
        • item 1.2.1.2
      • item 1.2.2
        • item 1.2.2.1
        • item 1.2.2.2

Currently, if I were to go to the page for item 1.2.1, my menu block would show:

ITEM 1.2

  • item 1.2.1
    • item 1.2.1.1
    • item 1.2.1.2
  • item 1.2.2

...but I really want it to show up to four levels, like this:

ITEM 1

  • item 1.1
  • item 1.2
    • item 1.2.1
      • item 1.2.1.1
      • item 1.2.1.2
    • item 1.2.2

...and if I then go to the page for item 1.2.1.2, I want to see this:

ITEM 1

  • item 1.1
  • item 1.2
    • item 1.2.1
      • item 1.2.1.1
      • item 1.2.1.2
    • item 1.2.2

Proposed resolution

Add an "Ancestor of active menu item" option to the "Starting level will be" select list that appears when following the active menu item. If selected, only prune items off the top of the menu tree if the depth of the active item is greater than the maximum depth set for the menu block (or max depth -1, if the active item has children to display).