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!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | context_block_weights.patch | 2.44 KB | alexpott |
| Context_screenshot2.png | 143.76 KB | michellezeedru | |
| Context_screenshot.png | 141.33 KB | michellezeedru |
Comments
Comment #1
nils.destoop commentedSame 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.
Comment #2
dboulet commentedSame problem here, subscribing.
Comment #3
alexpottGot 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.
Comment #4
hitfactory commentedThanks for the patch. Works as expected.
Comment #5
yhahn commentedThank you. Committed: http://drupal.org/node/518350
Comment #6
OnkelTem commentedPatch 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)
Comment #7
OnkelTem commentedComment #8
alexpott@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...
Comment #9
robertinop commentedChalk up one more for "fixed" - good work alexpott!
Comment #11
doublejosh commentedIs this no longer true? Doesn't work in Context 3.0
Comment #12
PI_Ron commentedSame in D7