By grigori on
Hi
My situation:
1) using drupal 6
2) using flag module
3) i am trying to display list of users who flagged node and i set up the view and it is displaying something but not what I want,
it is displaying 1 user several times, then next user several times and so on
a) Relationship -
Flags: User's flagged content 'name'
b) Arguments -
(user flagged content) Flags: Content ID
c) Fields -
User: Name
d) Filters -
(user flagged content) Flags: Flagged True
It looks like should work but it is not. Have any of you display list of users when using flag module? please help
Comments
Hi, I was attempting the same
Hi, I was attempting the same thing as you last night and came across a few of your posts, you sound as desperate as I was!
I did figure it out though so hopefully I can help. Are you trying to display it in a block? The problem with a block is that it doesn't get the node ID from the URL on it's own, so it's not getting the ID as an argument and as a result outputting all the names who've flagged something. Obviously if someone has flagged multiple things their name will show up more than once.
I spent forever looking for how to fix this since (as I'm guessing you are) I'm a relative Views newbie, but it was simple in the end. In your argument settings there is the option "Action to take if argument is not present:". At the moment you probably have that set to Display all values which is why all your duplicate names are showing. Change it to Provide default argument, and set that to Node ID from URL. Obviously that lets your block get it's hands on the ID so it can show only results for the node being viewed.
Hopefully that helps, if you're not using a block or your situation is different somehow just try me, I might be able to figure it out with enough clicking of random options :)