By updating to menu_block 7.x-2.7 having the parent follow the active menu works again. This allows one to use the new setting relative_depth to always find children relative to the active menu element. In the end, this makes it possible for content editors to determine the exact depth of the menu-page tree. This is useful for complex content eg permits to serve alcohol.

Comments

Heine created an issue. See original summary.

BarisW’s picture

Issue summary: View changes
BarisW’s picture

Minor typo corrected

heine’s picture

Suppose one has the following menu tree with levels 0 to 4 and * being the current page, having the menu_block starting level set to follow the current page.

0
- 1
  - 2 
    - 3 *
      - 4
        - 5

Since menu_block 2.5, depth 2 and current level 3 would result in no links in the menu block, because the current level '3' is below the maximum depth used to prune the menu tree in a previous step. A workaround is to set depth to whatever maximum depth you'll need (via dvg_global_active_menu_depth).

menu_block 2.7 reintroduced the intuitive follow+depth functionality using the depth_relative setting. Having 3 as the starting level and depth_relative 1 would correctly show level 4.

This allows nesting of menu pages to the maximum level based on the editor's requirements.

mvwensen’s picture

Status: Needs review » Reviewed & tested by the community

Patch seems to apply correct and works as advertised.

  • mvwensen committed 822c10a on 7.x-1.x authored by Heine
    Issue #2805201 by Heine, BarisW: Arbitrary menu page depth
    
mvwensen’s picture

I manually removed:
projects[menu_block][patch][] = "https://www.drupal.org/files/issues/menu_block-system_settings_form-2497..."
It's commited since version 2.6:
http://cgit.drupalcode.org/menu_block/log/?h=7.x-2.x

mvwensen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.