- Issue created by @justcaldwell
- π¨π¦Canada nickdjm
I think adding some block-level settings through the UI would be a good improvement to the module!
You can currently do this through code (not a great solution for site-builders, I know) since all of the settings are actually set at the block-level in the first place. We have a HOOK_preprocess_block() that adds everything about the menu into drupalSettings (including the constructor name for the type of menu you want to generate) and then the generator script takes it from there.
I think the flow would be:
- you set the default settings through the existing menu UI
- you can override those defaults on the block level through the UI when you place a menu block through block layout, layout builder, etc.
This would keep current functionality un-touched, while giving people the option to customize.
The only other thought I would have about this would be: should it be a submodule that enables this for you? Should the default module just provide what's there now- and then you would enabled "Accessible Menu Blocks" or something to enable the ability to override. This would keep the functionality as simple as possible in the main module.