Sorting posts with Weight and Views
Tech Notes
Often for one reason or another we need to sort a list of nodes arbitrarily. Here is a comparison list of modules to do the trick. Here is a recipe using Weight and Views. I've a Content type project that are the only nodes that need sorting.
- Install Weight and Views
- Enable Weight, Views and Views UI
- Create a new View admin/build/views/add
- Add a new display Add Display : Page
- Style : Weight Changer
- Page settings :
- Path : project/sort
- Fields :
- Node : Title
- Node : Edit link
- Weight : Weight
- Sort criteria :
- Weight : Weight (ascending)
- Node : Post date (descending)
- Filters :
- Node : Type = project
- Save it and browse to the page you set in Path
The patch contributed to Weight to allow this is written up here. http://www.zivtech.com/blog/drag-and-drop-content-ordering