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.
While it could group based on other parameter ie taxonomy, It seems to neglect grouping by organic group. basically I add fields "Working groups: Groups The groups for a post." and under "Fields to Group On" select this field. Nothing shown. I wonder if this a bug or other thing messed up with my environment. Thanks
Comments
Comment #1
capellicThe good news is that you can!
Here's how I setup my view:
1. Added a filter for the content type I wanted to count within the group. For example, "blog"
2. Add a relationship to the OG: Organic groups: Group node (post)
3. Add the following fields:
a. Node: Title -- Use relationship
b. Node: ID -- Do not use relationship
4. Then add the SQL Aggregation field. "Fields to Group On" should be set to "[] Node: Title" and "Fields to Aggregate with the SQL function" should be set to "Node: Nid". "Field to Sort Resultet On" should be "[]Node: Title"
Done.