Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module allows you to list different content types with Views but sort against a different field per content type, e.g.

Content type Field\property
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:

Configuration

  1. Enable the module
  2. Configure the sorting field via admin/structure/views/smart_sort
  3. 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.

Supporting organizations: 

Project information

  • Created by rattusrattus on , updated