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

mooffie’s picture

Status: Active » Fixed

Is it now possible to create a view that lists all group posts within a user's flagged organic groups?

Yes, it's easily possible.

(perhaps by daisy-chaining an "Organic groups: Group node (post)" relationship with a "flag" relationship?)

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.

sjf’s picture

Status: Fixed » Active

Thanks 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)'.

mooffie’s picture

Category: support » bug
Priority: Normal » Critical

I don't get the relationship dropdown

Yes, 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.

mooffie’s picture

sjf’s picture

Thanks mooffie, much appreciated.

EDIT: Just tested the patch posted in the Views thread and it works perfectly! Cheers.

mooffie’s picture

Status: Active » Fixed

"sjf", Thanks.

Merlin has committed that patch, so I'm closing this.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.