Integrate some of Menu Block module's options

Created on 15 June 2023, over 1 year ago
Updated 18 July 2024, 5 months ago

Problem/Motivation

For a project, we needed a single group menu block for each group but we needed to have a side nav which is dynamic (which levels of the menu to show, always show the parent, make it linked too, follow the active trail, etc). That same menu serves as the primary nav for the group, so we needed 2 of the same menu block on the same page and for them to behave differently as well.

Proposed resolution

Integrate as much as possible of Menu Block's options into the GroupMenuBlock (some of them do not make sense here).

Remaining tasks

- Get it working (patch provided is, at the very least, functional)
- QA things other than the one use case we're working on
- I'm sure a test is in order (not my wheelhouse, help!)

User interface changes

Adds several new fields to the Block config form for the GroupContentMenu block.

  • - not doing, this doesn't make sense in the context of of GCM since the available links will vary by Group.
  • Use as title - Replace the block title with an item from the menu. Options are
    • Block Title
    • Menu Title
    • Active Item's Title
    • Active Trail's Parent Title
    • Active Trail's Root Title
  • Link the Title?
  • Make the initial visibility level follow the active menu item
  • Initial visibility level - Active menu item OR Children of active menu item
  • Custom theme hook suggestion for the block and menu

API changes

N/A

Data model changes

Additional properties stored with GCM block instances.

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States scotwith1t Birmingham, AL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024