I have some blocks set with the core block layout as well as a context that sets some other block with "Include blocks from Block layout" checked.
when viewing a page with this context, the correct blocks are displayed but blocks that are weighted from the core block form are not in the correct order.
thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_5-6.txt | 1.34 KB | deaom |
| #6 | context-3156610-6.patch | 1.04 KB | deaom |
| #5 | context-Core_block_weight_not_respected_when_using_a_context_block_reaction-3156610-d8-5.patch | 1.04 KB | paulocs |
Comments
Comment #2
himanshu_sindhwani commentedI will have a look on this issue.
Comment #3
loze commentedI have a little more info.
What appears to be happening for me is the Main content bock (set with core) always has a weight of 0, regardless of the weight given to it from the core UI, but only when the context is active.
For example in the core ui content region I have:
- Block A
- Main Content Block
- Block B
- Block C
In my context I have a block reaction, and block placed in other regions (not content region) The content region is empty in my context.
But when viewing the page the content region displays as
- Block A
- Block B
- Block C
- Main Content Block
When I disable the context it displays correctly.
I can get around this if in the core UI I force the weight of blocks B and C to be more than 0.
Hope that helps. Thanks.
Comment #4
himanshu_sindhwani commentedGot busy in some other work. Will have a look at it sometimes after. Unassigning myself until then.
Comment #5
paulocsHello @all,
Here is a patch. Please review it.
Comment #6
deaom commentedHi, I could reproduce the issue and once the patch was applied it corrected the problem with the main system order. I just corrected coding standards, so new patch added.
Comment #8
paulocsFixed in dev branch.
Thanks @all!
Comment #9
neslee canil pinto@paulocs, thanks. Much needed one👍🏻