Creating a "unrated by you" view

modctek - July 8, 2009 - 00:28
Project:Fivestar
Version:6.x-1.18
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is there a way to create a view listing nodes that have not yet been rated by a logged-in user? I've managed to create one that lists any node that hasn't received a rating yet, but I'd like to personalize it further. Is this even possible?

#1

no2e - September 25, 2009 - 17:00

I want to create this, too.

I've managed to create one that lists any node that hasn't received a rating yet

How did you do that? Could you tell me please?

I don't know, if it works, but at Views -> Filter -> User there is the filter User: Current: "Filter the view to the currently logged in user."

so this might work, maybe?

#2

no2e - September 26, 2009 - 00:42

I think I managed to only display items, where the current user did not vote yet:

  • Relationships
    • Node: Votes
      • "Require this relationship": no
      • "Value type": No filtering
      • "Vote tag": Normal vote
      • "Restrict to current user": yes
  • Filters
    • (Votes) Votes: Value
      • "Relationship": use the one from above
      • "Operator": "Is empty (NULL)"

Unfortunately, it doesn't work to let users vote directly at this View (they have to visit each single node), as mentioned here: http://drupal.org/node/427698#comment-2084088

#3

modctek - October 7, 2009 - 20:56

Per how to create a view of nodes not yet rated, you'll need to establish a relationship "Vote Results" and then filter for nodes where "Vote Results: Value" is empty (NULL).

 
 

Drupal is a registered trademark of Dries Buytaert.