Views smart sort
Categories
Component ID
2749857
Component name
Views smart sort
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module allows you to list different content types with Views but sort against a different field per content type, e.g.
| Content type | Fieldproperty |
|---|---|
| Event | Event state date |
| Press release | Publication date |
| Basic page | Last updated |
#2133879 describes the problem and proposes workarounds using the Views API but this module takes a different approach which aims to make this functionality accessible to a wider audience.
Other relevant links:
- http://stackoverflow.com/questions/11769902/drupal-7-sorting-multiple-co...
- http://www.balanceinteractive.com/blog/drupal-views-date-sorting-multipl...
Configuration
- Enable the module
- Configure the sorting field via admin/structure/views/smart_sort
- Add the Smart sort field as a sort criteria on your View.
Exporting configuration
Configuration can be exported via Features + Strongarm by exporting the views_smart_sort variable.
