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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | context_show_row_weights-1005190-4.patch | 6.93 KB | tekante |
| #3 | context_show_row_weights-1005190-3.patch | 6.76 KB | tekante |
| #1 | context_show_row_weights-1005190-1.patch | 4.02 KB | tekante |
| Screen shot 2010-12-22 at 8.37.49 AM.png | 21.4 KB | alberto56 | |
| Screen shot 2010-12-22 at 8.37.10 AM.png | 20.64 KB | alberto56 |
Comments
Comment #1
tekante commentedAttached 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
Comment #2
alberto56 commented@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.
Comment #3
tekante commentedAttached 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.
Comment #4
tekante commentedThis 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)
Comment #5
febbraro commentedAll committed, despite a few git botches on the migration.
http://drupalcode.org/project/context.git/commit/92e5c16
Comment #6
aarsic commentedI 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?
Comment #7
raj8 commentedYes, I too want to know how to apply it !
Comment #8
alberto56 commented@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!