flag-drupal8 icon indicating copy to clipboard operation
flag-drupal8 copied to clipboard

Views integration required for user flag

Open fly2abhishek opened this issue 10 years ago • 3 comments

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

fly2abhishek avatar Dec 10 '14 06:12 fly2abhishek

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?

socketwench avatar Dec 14 '14 03:12 socketwench

It is supposed to show the content of followed users.

fly2abhishek avatar Dec 14 '14 05:12 fly2abhishek

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.

joachim-n avatar Dec 14 '14 07:12 joachim-n