1

I am using fivestar module for voting on nodes. For each node I would like to create a list of users who have voted on this node and the rating they have given. I am trying to do this using Views 3 but I don't see any relationship which can give me this.

I tried doing this using both the node base table and user base table in Views.

Any ideas how I can go about this?

3

If you use node as your base table, you can add the relation Content: Votes. This will expose all Votes on that node. From there you can add the fields Votes: User and Votes: Value that can be displayed in a table or something.

enter image description here

4
  • 1
    I swear this was not working earlier. But it does now :P – Gokul N K Dec 25 '15 at 7:24
  • Thanks for this answer! I am getting only the first user (in terms of user ID) who voted on the article and not a list of all users who voted on the article, how can I achieve this? – Raj Pawan Gumdal Mar 25 '18 at 14:07
  • My bad, I had limited only 10 entries and I was unable to see multiple entries for a node. This works perfect! Only question I have, is there a way to accept the UID as a URL parameter and then filter out results only for that user? – Raj Pawan Gumdal Mar 25 '18 at 14:30
  • Hi Raj, you might be able to add a contextual filter for the vote user's uid and fill it with a default value from the URL. – Neograph734 Mar 25 '18 at 20:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.