Closed (duplicate)
Project:
Fivestar Extra
Version:
6.x-1.0-beta3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2008 at 22:22 UTC
Updated:
9 Jul 2009 at 16:31 UTC
Hi folks, I'm trying to figure out if there is a way to use the rating of the comment itself (vs. the rating of the node) in a View, for filtering/sorting? Does anyone know if this is possible?
Thanks!
DD
Comments
Comment #1
Richard Blackborder commentedI can tell you that Fivestar Extra uses the same votingapi backend that Fivestar uses, so you might get best results checking the votingapi module to see if it has support for views.
Comment #2
dubitable commentedHi Likeless,
Sorry, I should have mentioned what I've already tried. First of all, yeah, I can confirm for a fact that you can connect the Voting API stuff to Views; but it seems like there is no ability to pull out the voting *just* for comments and filter/sort on those. So, I guess what I'm really asking is: is there a way to just utilize the ratings on comments in Views, apart from the ratings on Nodes (which I have confirmed I have access to via Views)?
Am I making sense? I know this is a bit convoluted...if it makes it any more clear, what I'm basically trying to do is create a view for "top-rated comments."
Thanks!
Best,
Dave
Comment #3
Richard Blackborder commentedI know a fair bit about votingapi, but I'm a long way from being an expert on views. I don't know the answer to your question, sorry.
Comment #4
dubitable commentedNo problemo. I figured you may know more than I do, just 'cause you've programmed the interface. I'll dig further and see what I can figure out, if I learn anything substantial I'll post it. Thanks for your response, in any case!
Best,
Dave
Comment #5
mr.andrey commentedI'm looking for this functionality as well. Node votes are accessible to views through Vote API, but comments do not seem to be. There needs to be a relationship definition that ties them together.
Fivestar module has various views functions:
In particular, the following one defines the relationship:
I think this somehow needs to be changed and ported into the Fivestar Extra module to have comments accessible to views.
Best,
Andrey.
Comment #6
Richard Blackborder commented#425280: user fivestars and views