Active
Project:
Views Group By
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2010 at 04:49 UTC
Updated:
20 Apr 2011 at 14:57 UTC
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.