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.
It would be great if we could drag-and-drop to change the order of the social media icons
Comment | File | Size | Author |
---|---|---|---|
#2 | on_the_web-reorder-1982038-1.patch | 584 bytes | sylvain lavielle |
Comments
Comment #1
davidneedhamI know +1's are a little passé these days, but I'd like to show support for effort on this feature. :-) Thanks Jen!
Comment #2
sylvain lavielle CreditAttribution: sylvain lavielle commentedWithout going so far as drag-and-drop reordering it would be useful to be able to change the order of icons programatically.
I made a patch in order to reorder services using the hook_on_the_web_get_services_alter by defining a weight property for services.
Here the patch and below the code to implement in a custom module ...
Comment #3
jenlamptonI believe you can already adjust the order of the icons by implementing
hook_on_the_web_get_services_alter()
and simply changing the order of the items in the list right there. I don't think this sort function will be necessary until we add a system for adding weights. I'd like to wait and see if we can get a patch with tabledrag.Comment #5
jenlamptonI just committed a big change that adds the tabledrag reorder ability. Please test on -dev and let me know if you encounter any issues.