This is an alternative to the popular DraggableViews module. The difference lies in that this module stores weights directly on entity fields.
Here is how it works:
- Create a view of any entity and have its format be any of "Sortable HTML list", "Sortable Unformatted list" or "Sortable table". Make sure the entity type has a spare integer field or base field to store the weight.
- In the view format settings, specify such field for storing weight.
- Add the field "Sortableviews: Drag and drop handle." to the view. This is the actual "handle" users will use to perform the drag and drop.
- Add your weight field as a sort criteria as well. It can be either in asc or desc fashion.
- Finally, add the "Save Sortableviews changes" handler to either your view header or footer. This is the button users will use to save changes and will only appear when there are changes to be saved.
- Your view should now be sortable.
Be aware that the sorting process will always overwrite whatever weight an entity had. Also, weight conflicts may occur if using multiple sortableviews for the same entity type and bundle.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.1,335 sites report using this module
- Created by ibustos on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.3
released 13 August 2024
Works with Drupal: ^8.8 || ^9 || ^10 || ^11
Fix "TypeError: Cannot read properties of undefined (reading 'tagName')"
Install:
Development version: 8.x-1.x-dev updated 13 Aug 2024 at 14:29 UTC

