Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On the 'panels_block_page_content' form there appears to be a limit of +/- 10 for the weight field. When more than 20 items exist, this creates odd behavior when dragging and dropping the order of the page. I'm wondering if it would make sense to increase this value, or set the delta higher than the site's 'weight_select_max' to convert the weight field from a select into a text field, making it "unlimited". I'll have a patch with this suggestions shortly.
Comment | File | Size | Author |
---|---|---|---|
#2 | block_reorder_fix-2779617-1.patch | 629 bytes | bkildow |
|
Comments
Comment #2
bkildow CreditAttribution: bkildow commentedThe default 'weight_select_max' in drupal is 100. Setting the delta to 101 converts this into a text field, essentially allowing a very large amount of blocks to be correctly reordered.
Comment #3
bkildow CreditAttribution: bkildow commentedComment #4
bkildow CreditAttribution: bkildow commentedComment #5
japerryComment #6
japerryAfter further discussion with the core team, we think this is better solved in core.
I've re-rolled a patch there, which should cleanly apply to 8.1 and 8.2: #1518182: Improve #weight select element behavior based on the number of items
Alternatively, you can set 'weight_select_max' to 1 in config, which should effectively do the same thing.
Comment #7
japerry