Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to order the nodes in the category view or anywhere based on their five star rating?
Comments
Comment #1
quicksketchYes. Use the Views module. http://www.lullabot.com/videocast/building-views-fivestar-and-votingapi
Comment #2
JubW CreditAttribution: JubW commentedIs there support for multi-axis right now? I read some other posts in support but I don't understand them
Comment #3
JubW CreditAttribution: JubW commentedAnd also what modules is this site using. I know its using five star for the rating but what about the reviews?
http://www.adoptionagencyratings.com/aaaa-adoption-attorneys-joel-steve-...
Comment #4
quicksketchMultiaxis voting is possible, but each widget has to be added to the page manually. In other words, the API is in place but the UI is not. The site you referenced uses the included "Fivestar Comment" module to add ratings to comments (essentially creating reviews). It is an extremely easy and quick solution. If you need multiaxis rating as part of reviews, see the Fivestar handbook pages on some setups of this: http://drupal.org/handbook/modules/fivestar
Comment #5
quicksketchI didn't mention, the "Fivestar Comment" module is included with the normal installation of Fivestar. So if you have Fivestar you should have this module already.
Comment #6
JubW CreditAttribution: JubW commentedOk, Thanks for all of the help
Comment #7
quicksketchComment #8
nvl.sateesh CreditAttribution: nvl.sateesh commentedhi... i want to know if i can use a nested query on node table and votingapi_vote or something to order nodes by value... i did not see the connection between node nid and votes? what am i missing? I don't want to use views as i want to display the output in a custom location in the module i am writing.. any help is greatly appreciated.... thanx.... btw, i changed the status of the message to active (need more info). is that okay?
Comment #9
JubW CreditAttribution: JubW commentedDo I have to use the Node Comments plugin to use multi axe? I didn't understand the first page.
Comment #10
quicksketchThere currently is no UI for multi-axis configuration. I would not suggest attempting it currently if the instructions in the Fivestar handbook are not suitable.
sateeshNVL, Fivestar uses VotingAPI for all it's records, so you'll need to query on the votingapi_cache table to get the results for nodes.
Comment #11
nvl.sateesh CreditAttribution: nvl.sateesh commentedThanks quicksketch.... I have been away from office for a long time..... sorry if i sound dumb.... i am writing a code snippet where I want to list all the nodes that belong to one particular taxonomy term, and then be able to sort within them by "most rated".... so, views module is ruled out in my case. so, I am trying to use something like ORDER BY vote_average DESC..... or something like that... can you tell me how i can do this? :-(
thanks again.....
Comment #12
quicksketchSorry I'm not able to help with custom coding, it's outside the scope of help provided in the Fivestar issue queue. Closing as I've answered JubW's question.