Closed (fixed)
Project:
Flag
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2008 at 20:15 UTC
Updated:
17 Oct 2008 at 10:22 UTC
I've created a new flag and enabled it for organic groups. Is it now possible to create a view that lists all group posts within a user's flagged organic groups? It seems like it should be possible (perhaps by daisy-chaining an "Organic groups: Group node (post)" relationship with a "flag" relationship?) but I haven't yet been able to figure it out.
I'd like to use it as a simple alternative to actually joining a group.
Comments
Comment #1
mooffie commentedYes, it's easily possible.
Exactly.
1. Start by listing all nodes.
2. Add the 'Group node (post)' relationship. This brings in, for every post, its group node.
3. Add your 'Node flag' relationship, but in its relationship dropdown select the group node (instead of 'none').
See:
A short guide to using the Views integration
If you encounter difficulties, unintuitive things, etc., write them here and we'll try to improve the documentation.
Comment #2
sjf commentedThanks for the quick response. You've confirmed what I expected but while steps 1 and 2 are fine, in step 3, when adding a Node Flag relationship, I don't get the relationship dropdown. I'm using the latest dev versions of both Views and Flag.
I can daisy-chain other kinds of relationships together, just not 'flag' and 'Group node (post)'.
Comment #3
mooffie commentedYes, I now see the problem. Thanks for reporting this.
I see why this happens, and I suspect it's mostly Views' fault.
Unfortunately, I won't be here for the following two days. I'll investigate this when I return.
Comment #4
mooffie commentedI filed a Views issue:
#316195: "Relationship:" dropdown isn't built correctly
Comment #5
sjf commentedThanks mooffie, much appreciated.
EDIT: Just tested the patch posted in the Views thread and it works perfectly! Cheers.
Comment #6
mooffie commented"sjf", Thanks.
Merlin has committed that patch, so I'm closing this.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.