Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There is currently no way in views to create a select list of groups to filter content by.
Proposed resolution
Provide a views filter plugin for groups, which allows you to select a group form a dropdown list as well as preform the necessary joins for filtering.
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff_1-5.txt | 3.49 KB | Uhkis |
#5 | group-provide-useful-views-filters-for-groups-2898160-5.patch | 3.92 KB | Uhkis |
| |||
#2 | group-provide-useful-views-filters-for-groups-2898160-1.patch | 2.54 KB | mgalalm |
Comments
Comment #2
mgalalm CreditAttribution: mgalalm at Johnson & Johnson commentedPlease see attached patch for an attempt to add this feature
Comment #3
MGParisi CreditAttribution: MGParisi commentedTested, this code does infact allow for a drop down when used in conjunction with https://www.drupal.org/project/entity_reference_views_select
The issue I have is duplicate content and what appears to be a total disregard of the content permissions. None-the-less its a good start.
Comment #4
MGParisi CreditAttribution: MGParisi commentedComment #5
Uhkis CreditAttribution: Uhkis at Mediamaisteri Oy commentedHere's some extra functionality for this one, provides bundle filter for the group listing.
Left at needs work since the permission issue mentioned by @MGParisi isn't fixed.
Comment #6
John Pitcairn CreditAttribution: John Pitcairn commented