does the 7.x alpha7 have views integration? If I add the relationship "Flag Friend: User flag -
Limit results to only those users flagged by a certain flag; Displays the user who flagged this content."
I only get content flagged by the current user.

How can I show the number of friends of the current user (other than running a SQL against flag_friends table).

thank you!

Comments

mwesthof’s picture

... and perhaps related:
How to show a list of nodes, created (not flagged) by friends (flagged users) of the currently logged in user.
Example: Current user A has flagged two users: friend B and friend C; Current user A wants to see one combined list of nodes created by B or C.

I added the views relationship Content: Author and after that Flag Friend: User flag which preselects the Author relationship automatically.
The resulting views query does an INNER JOIN on the {flag_content} table, but the relations for this module seem to be stored in the {flag_friend} table.

sirkitree’s picture

Status: Active » Needs review

This is not well documented I'm afraid, and I've been away from it long enough to not remember off the top of my head.

Need to dig back into how to add flag relationships to a view and document this here.