Needs review
Project:
Flag Friend
Version:
7.x-1.0-alpha7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2011 at 19:33 UTC
Updated:
12 Jul 2012 at 21:27 UTC
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
Comment #1
mwesthof commented... 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.
Comment #2
sirkitree commentedThis 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.