Create a new context with some blocks. In each region appears the text "Show row weights". Clicking on this makes the dragger disappear and the link "Show row weights" become "Hide row weights"; see attached images.

What I expect this to do is to show a drop down menu with the weight of the block within the region, so I can have more fine-tuned control over the overall order of all my blocks on a given page, even if my blocks come from the core block module and several different contexts.

Comments

tekante’s picture

Status: Active » Needs review
StatusFileSize
new4.02 KB

Attached is a patch that should cause the row weights to display and hide correctly and take whether they are displayed/hidden when initially adding a block to a region. Please test to see if it resolves your issue. The patch was built against the latest 7.x branch in CVS

alberto56’s picture

Status: Needs review » Needs work

@tekante thanks for the patch!

- latest HEAD of context, as well as latest Drupal 7, used.
- apply this patch
- create a new context with two blocks in a region
- notice that row weights are visible now upon clicking "show row weights", so in that sense the patch works.
- weights are "-10" by default
- change weights using the drop-down menu
- save
- edit the context
- One would expect the weights to have been saved, but now they're reset to zero (0)

Cheers,

Albert.

tekante’s picture

Status: Needs work » Needs review
StatusFileSize
new6.76 KB

Attached is a patch that provides for better layout of the weight inputs by moving them to their own TD and should address the issue with the weights not displaying. The weights actually were only saving by position but this patch addresses to save the value that is in the weight select.

tekante’s picture

StatusFileSize
new6.93 KB

This patch is a reroll of #3 with a styling adjustment that allows for better usability in the Rubik theme (keeps the show row weights toggle icon from overlapping other content)

febbraro’s picture

Status: Needs review » Closed (fixed)

All committed, despite a few git botches on the migration.

http://drupalcode.org/project/context.git/commit/92e5c16

aarsic’s picture

I think I need to apply this patch because my blocks and nodequeue do not show the "show or hide weights" anymore. But what exactly do I do with this patch and where do I apply it?

raj8’s picture

Yes, I too want to know how to apply it !

alberto56’s picture

@aarsic and raj8: this patch is not for blocks or nodequeue, it is for the context module. Unless you are using Context and have problems with the Context UI admin page, you might be on the wrong thread!