This module’s great. Thanks!
When using references, numbers aren’t very useful to me unless they are ordinals based on names that I'm managing or if they're used for arithmetic, so the name that came up for one of my menu_block menus, menu-block-3 was problematic. Besides not being easy to remember or associate with its purpose while styling CSS, it can change. Consequently, I modified the module to also create a named class in addition to the numeric class name.
I also had styling problems trying to override id (#) selectors, so I added an option to create a CSS ID, too. To take advantage of that capability, you’ll need to update your menu-block-wrapper template file to match the change in this patch.
You can associate the styling among block submenus by giving them all the same class name, but you’ll need to change the template to remove the CSS ID.
Comment | File | Size | Author |
---|---|---|---|
#17 | add_a_named_css_class-898616-17.patch | 5.66 KB | silvi.addweb |
| |||
#15 | add_a_named_css_class-898616-15.patch | 7.42 KB | silvi.addweb |
| |||
#14 | Screen Shot 2016-08-30 at 5.34.18 PM.png | 82.59 KB | TechNikh |
#2 | 898616-2.patch | 5.11 KB | stefan.r |
menu_block.patch | 7.14 KB | Daniel Norton | |
Comments
Comment #1
DanielF CreditAttribution: DanielF commentedThis feature would've been nice to have for my most recent project. So, here I am, clamoring for it. Could we get this reviewed and committed?
Comment #2
stefan.r CreditAttribution: stefan.r commentedComment #3
rwam CreditAttribution: rwam commented#2 work's as expected with menu_block 7.x-2.5
Nice work, thanks.
Comment #4
aitala CreditAttribution: aitala commentedThe patch failed on the 2.7 and dev version of the module...
Any ideas?
E
Comment #5
mansspams CreditAttribution: mansspams at Wunder commentedCannot apply to dev.
Comment #6
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. commentedPFA patch which works fine for 7.x-2.x-dev and 7.x-2.7
Comment #7
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. commentedComment #10
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. commentedPFA patch which works fine with versions 7.x-2.x-dev
Comment #11
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. commentedComment #14
TechNikh CreditAttribution: TechNikh commentedFYI, The above patch introduces an error as reported by Drulenium visual testing at http://drulenium.org/projects/drupal-module-menublock-7x-2x-desktop
Comment #15
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. commentedAttached patch solved #14 errors as well.
Comment #17
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. commentedRe submitting patch to correct formatting issues.