Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Views integration required for user flag #99

Open
fly2abhishek opened this issue Dec 10, 2014 · 3 comments
Open

Views integration required for user flag #99

fly2abhishek opened this issue Dec 10, 2014 · 3 comments

Comments

@fly2abhishek
Copy link

We created a flag called follow for users to be able to follow other users. And we wanted to create a view where a user can see all the content posted by all users followed by the logged in user.

We created relationships Flags and (Flags) Flag user and contextual filter (Flag user) User: User ID, but the views query looks like it is creating a join on node.nid = flagging.entity_id

@socketwench
Copy link
Owner

I'm not sure I understand what the view is supposed to be doing yet. Is it supposed to be showing followed users or the content of followed users?

@fly2abhishek
Copy link
Author

It is supposed to show the content of followed users.

@joachim-n
Copy link

The Flag user relationship should bringing in the user table joined on flagging.uid.

node.nid = flagging.entity_id

But that's normal too. That's from your relationship from nodes to flaggings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants