Besides the option of limiting the flags to the "current user" or "all users", in some views it is needed to get the flag for a given content of a given user.

In my case, I wanted an overview of all contents and wheter a given set of users flagged that content or not. With views_cross_join and an additional "By"-Option (that let's you select a specific user relation of the view), I could make this work.

I'll attach the patch in the next comment (to have the issue number for reference).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

derhasi’s picture

Status: Active » Needs review
FileSize
3.53 KB

And there is the patch, that sureley needs some review ;)

derhasi’s picture

I updated the patch to be more readable. Would be great you could review it!

joachim’s picture

Status: Needs review » Postponed (maintainer needs more info)

I'm a bit confused by what this does and when it's needed.

Couldn't this be done with a content view + relationship to flag + relationship to user + filter on user ID?

In fact, now we have the uid field on the flag_content table available, you don't even need the last relationship.

joachim’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closing old bugs where no further information was supplied.