Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For interface layout consistency, I needed the option to display the block even if there were no child menus. This essentially only displays the block title, which in my case is the title of the top level active menu item.
Attached is a patch to add the feature. It can be set within the block's configuration.
Comment | File | Size | Author |
---|---|---|---|
#6 | D7_menu_block_always_show.patch | 2.94 KB | seanB |
#1 | menu_block_always_show.patch | 3.35 KB | imclean |
menu_block_always_show.patch | 3.83 KB | imclean | |
Comments
Comment #1
imclean CreditAttribution: imclean commentedPlease ignore first patch, it's a little messy. Try this one.
Comment #2
mzwyssig CreditAttribution: mzwyssig commentedThe patch works fine for me, thanks !
Should be implemented in next version :)
Comment #3
jglynn CreditAttribution: jglynn commentedI also need this feature to maintain layout integrity, this should be implemented.
Comment #4
elindberg CreditAttribution: elindberg commentedWorks perfectly when configuring a menu block from within the administer blocks page, admin/build/block. Thanks! However, doesn't work when configuring from within the Panel nodes (Panels module) add content window. Blocks without submenus are not displayed even with Always show checked (blocks with submenus are displayed).
Comment #5
mbehiels+1 for integration
Comment #6
seanBI've created a patch for the D7 version based on the patch posted here. Thanks! Could this function be added to the module?
Comment #7
rfc2460 CreditAttribution: rfc2460 commented#6 works for me. Thanks !
Comment #8
lklimek CreditAttribution: lklimek commentedPatch #6 works for me on D7 and latest 7.x-2.x, thanks!
It just would be nice if you will:
1. Create a patch in compliance with description here: http://drupal.org/node/265945/git-instructions/7.x-2.x - so it can be applied with patch -p1
2. avoid CR (Windows-style line breaks) :)
Comment #9
zylootino CreditAttribution: zylootino commented@seanB
I have applied the patch but the always show checkbox does not show up in the admin. I have tried uninstalling and re-installing the module.
Any idea?
Thanks
Comment #10
seanBYou could try checking the form alter. Is it called and does it contain the field?
Comment #11
PolI'm also looking for this.
Comment #12
JohnAlbin