I have a review site on which people can rate spa's. A user can visit the user profile pages of individual users. I would like the user profile page of every individual user to show the 3 spa's they rated highest. To do so I enabled blocks on the user profile page. Subsequently I use views to make a block in which the top 3 spa's are shown.

To show the top 3 per user I need to do the following:
1) add a relationship based on individual votes
2) add an argument in which I retrieve the user uid or name of the profile page the user is visiting.
3) sort the nodes based on the vote casted by the user whose profile page is being looked at.

Does anybody know how this can be done?

I can only find relationship based on number of votes or aggregate result. In the arguments function I do not see any reference to the individual user who voted.

Is the top 3 spa list per individual user not possible or am I overlooking something?

Thanks in advance for your replies

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

This should filed be against voting api, not views.