Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Adds Views sorting plugins that allow setting weight for each list field or entity bundle option.

For instance:
You have an entity with a "list" field, which we'll call "Status." The available options are:

new|New
canceled|Canceled
approved|Approved
need_feedback|Need Feedback

You want to sort the view display based on these options. However, entities with the status "Canceled" should appear at the top of the list, followed by "New," then "Need Feedback," and finally "Approved" at the bottom. This module can help you achieve that! See the "How to Use" section for more details.

Supported field types:

  • "List (text)" - list_string
  • "List (integer)" - list_integer
  • "List (float)" - list_float

+ Entity Bundle (Type)
+ User Role

How to use:

  1. Go to the Views settings form and choose one of the sorting plugins that have the "(set weight)" suffix.
  2. Set weight (integer number) for each of the proposed options

Similar projects and how they are different:

  • Views List Sort: offers similar functionality but doesn't allow to change the weight of available options; supports only "list_string" fields; doesn't support "type" (bundle) property.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.2.0 Stable Dec 19, 2024