In my site, I have a number of blocks in the right sidebar that are set using the Blocks configuration, so they are pretty much site-wide depending on role. I am trying to show some additional blocks in a Context that are above those other blocks. In my context menu, I have placed them above my other blocks (see screenshot), but when I display a page where the context applies, the context-set block is below the other blocks (see screenshot2).

Is there something I'm missing about the way this should work, or is this a bug?

Thanks!

Comments

nils.destoop’s picture

Same problem here.
The problem is:
On context ui form: the system block weights = 20, and my block = -23
On the block list page: the block weight = -25.
So weights from context ui and the real block weight aren't the same.

dboulet’s picture

Same problem here, subscribing.

alexpott’s picture

Version: 6.x-2.0-beta4 » 6.x-2.0-beta5
Status: Active » Needs review
StatusFileSize
new2.44 KB

Got this problem myself... it's becaue the block weight #delta in the context ui is fixed to 20 whereas on the Drupal normal block admin screen the #delta depends on the number of blocks you have available.

A patch against 6.x-2.0-beta5 is attached.

hitfactory’s picture

Thanks for the patch. Works as expected.

yhahn’s picture

Status: Needs review » Fixed

Thank you. Committed: http://drupal.org/node/518350

OnkelTem’s picture

Patch could not be applied to beta5

Patching file context_ui.admin.inc using Plan A...
Hunk #1 failed at 187.
Hunk #2 failed at 207.
Hunk #3 failed at 262.
Hunk #4 failed at 278.
Hunk #5 failed at 915.

Clean beta5, just downloaded from project's page
Also tried CVS version (not dev, beta5 too)

OnkelTem’s picture

Status: Fixed » Needs review
alexpott’s picture

Status: Needs review » Fixed

@OnkelTem

I've just downloaded a fresh beta5 and applied the patch using the instructions here http://drupal.org/patch/apply - works a treat. Plus the patch has been applied to the the DRUPAL-6--2 branch already (http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/context/con...).

So marking as fixed...

robertinop’s picture

Chalk up one more for "fixed" - good work alexpott!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

doublejosh’s picture

Is this no longer true? Doesn't work in Context 3.0

PI_Ron’s picture

Same in D7