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.
Problem/Motivation
I've been looking for a way to have a Nodequeue-like Entity Reference widget. Someone on IRC mentioned that this module has a widget that is really close to what I'm looking for (and would only require a slight modification for the publishing status. However, I don't need the rest of Entity Queue. :/
Proposed resolution
Move the "Draggable Table" Entity Reference widget into a submodule of this module (same project) and allow it to be installed independently of Entity Queue.
Comment | File | Size | Author |
---|---|---|---|
#5 | dragtable-2460503-5.patch | 26.62 KB | davidwbarratt |
#5 | interdiff-2460503-4-5.txt | 889 bytes | davidwbarratt |
Comments
Comment #1
davidwbarratt CreditAttribution: davidwbarratt at Golf Channel commentedAttached is a patch that moves the field formatter into a submodule of Entityqueue.
Comment #2
davidwbarratt CreditAttribution: davidwbarratt at Golf Channel commentedFixed a typo in a function name.
Comment #3
jojonaloha CreditAttribution: jojonaloha commentedI think this is a good idea, and thought about doing this originally, but if I remember there were a few things I had a hard time separating.
Anyway, so far the patch looks good, but I notice the Reverse, Shuffle and Clear buttons don't function the way they did before. It seems they do take effect after you hit Save, but you don't get to preview the changes or know that it did anything. I think it's just that the ajax replacement of the form isn't happening anymore.
Comment #4
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commentedRerolled patch.
I'll look into why the buttons are no longer working, I may have moved/removed something that was needed.
Comment #5
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commentedYep, looks like I accidentally removed the Ajax callback, I've added it back in this patch.
Comment #6
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commentedComment #7
albertski CreditAttribution: albertski at Xeno Media, Inc. commentedThis patch is failing:
Comment #8
jenlampton+1 for moving into another module. I am using entityqueue on several sites and some more jr developers keep using the super-buggy 'Draggable table' widget when it's completely unnecessary. I'd love to get rid of it until it stabilizes, it will keep my client complaints down :)
Comment #9
jonathanshaw+1 for this in D8, the widget is useful outside of entityqueue too.