When block is added to region and context saved, blocks position to other blocs from other contexts are not saved properly. This issue #455908: Allow setting block weight via context admin UI provides workaround, but proper fix is needed.

When block is added to region or moved in region in one context, before saving, all contexts for that region needs to be updated accordingly.

Comments

franz’s picture

Title: Save correct wheight for all blocks in all contexts of region when saving » Save correct weight for all blocks in all contexts of region when saving

+1 to this.

doublejosh’s picture

Agreed !!!
Stuck doing all block placing via features without this.

tekante’s picture

Adding tag for tracking

tekante’s picture

Status: Active » Postponed (maintainer needs more info)

I tried testing placement of two blocks, each in a different context, using the inline editing capabilities of the latest dev version (this is accessed via a configure layout link on any block on the page rather than having to activate the inline editor as in previous versions). As I changed the relative position of the two blocks and saved my changes the weights were set in each context to match the order of the blocks on the page. This also worked with multiple blocks in one context separated by a block placed by another context. This is the only editing mechanism where I would expect the weighting of blocks in multiple contexts to interact with each other.

I would not expect that if using an individual context editor (at URL like admin/structure/context/list/%CONTEXT_ID/edit) that the adjustment to block placement and weights here would take any other potential contexts into account.

Can you provide more information about what behavior you are seeing versus what behavior you expect?

tekante’s picture

I also wanted to point you at this issue #1238580: Context edit form does not assign block weights properly. in case it describes the problem you are attempting to report (block weight is set incorrectly relative to its position when adding a block to a context). There is a patch in comment 10 in that issue that needs testing and review if that issue describes the problem you are having.

tekante’s picture

Can anyone provide information about whether this issue exists in the latest version of context and if so how to replicate?

tekante’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to lack of activity and information for replication. Feel free to reopen if you are able to provide more information for reproducing the error.