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.
When Fusion is calculating grid widths on regions, it loads the blocks in each region from core block placement and blocks placed with the context module.
The context module has a region reaction which disables a region by removing blocks from the page array. Since Fusion counts the blocks by directly accessing them from core and context the region disable reaction doesn't notify Fusion that it is disabled. A solution for this is to alter the fusion_core_block_list() function to also check the region reaction.
I have included a patch needs testing.
Comment | File | Size | Author |
---|---|---|---|
#11 | context-region-disabled-reaction-1298916-9.patch | 843 bytes | dsdeiz |
#10 | context-region-disabled-reaction-1298916-8.patch | 773 bytes | dsdeiz |
#8 | context-region-disabled-reaction-1298916-7.patch | 735 bytes | dsdeiz |
#6 | context-region-disabled-reaction-1298916-6.patch | 760 bytes | dsdeiz |
#1 | fusion_block_list_region_reaction-1298916-1.patch | 880 bytes | jamiecuthill |
Comments
Comment #1
jamiecuthill CreditAttribution: jamiecuthill commentedActually, here is a patch for the current state of 1.x-dev
Comment #2
esmerel CreditAttribution: esmerel commentedComment #3
cbeier CreditAttribution: cbeier commentedThanks for the patch. The patch from comment #1 worked for me.
Comment #5
aquariumtap CreditAttribution: aquariumtap commentedComment #6
dsdeiz CreditAttribution: dsdeiz commentedHi, had time. Patch attached.
Comment #8
dsdeiz CreditAttribution: dsdeiz commentedHm, weird.
Comment #10
dsdeiz CreditAttribution: dsdeiz commentedOne last try. I have no idea which branch the bot is patching the file.. :(
Comment #11
dsdeiz CreditAttribution: dsdeiz commentedMy bad, didn't notice 'region' in
context_get_plugin('reaction', 'region')
.Comment #12
Poieo CreditAttribution: Poieo commentedMarking this as a duplicate of #1673064: Nested region's width does not adjust correctly when a context hides a region (sidebar_first and sidebar_second) since 7.x-1.x is no longer supported and that issue has a patch for the current branch.