Views Sort By Options Weight
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:
- Go to the Views settings form and choose one of the sorting plugins that have the "(set weight)" suffix.
- 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
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 2.2.0 | Stable | Drupal 11 support | Dec 19, 2024 |