Right to the point:
I've set up a View (block and page) to list the node title of a particular content type, restricted by a particular term (category). This works quite well, I'll admit. Where things seem to be falling apart is when I set up the same View to display the fivestar rating - in order. You see, it displays the rating admirably (it looks quite sharp), but...
... the sorting criteria I have applied isn't working. I'm trying to sort it by the fivestar rating.
So, the fields I have for my view are:
- Node Title
- Fivestar Rating (field_rating)
The sorting is set up as follows:
- Fivestar: Vote Results (ascending, but this doesn't seem to matter)
No sorting at all seems to be happening.
Let me know if I can provide any further information to track this down.
Thanks,
James Addison
http://www.scottisheyes.com/
Comments
Sounds like...
...You're using the fivestar module in CCK Field mode. Is that correct?
--
Lullabot! | Eaton's blog | VotingAPI discussion
--
Eaton — Partner at Autogram
I had to think about this -
I had to think about this - but yes, that is correct. via CCK.
That way, I am able to set a rating MYSELF, and disallow others from rating, which is really what I want.
Thanks for any tips you can provide.
James Addison
http://www.scottisheyes.com/
Any further thoughts on
Any further thoughts on this? I think I noticed a different voting module somewhere - would it be a better option to meet my needs?
Thanks,
James Addison
http://www.scottisheyes.com/
worked around it
In a not so elegant fashion, I have worked around this issue. I hacked up the fivestar module a little bit, and decided not to go with the CCK field for fivestar.
James Addison
http://www.scottisheyes.com/
I'm not sure..
I'm not sure, but what I did in v 5 was to go to content type and edited 'story' and asked to have rating of content turned on. This works, and I can then go to Views and have figured out how to define a table view sorted by ratings across the multiple stories that I put up and put fake votes on to test. I've tried other ratings and haven't got them all figued out as yet. Two requests if anybody has answers:
1) I think it'd be neat to show the average rating on a node.. like jratings might if one could get it to work. In the sorted View, for instance, I'll want to show results across many ideas/nodes and their ratings, so a "3.50" (or something like it) would be very cool.
2) I want my site users to rate a bunch of ideas, and in the future, against several alternative criteria. But for now, if I could quickly show the item and have people rate them down a list, it'd be neat. Jrating shows "average rating" in the node teaser -- which is nice. FiveStar doesn't put the rating on the node teaser automatically.. and I don't know much about theming. Does anybody know if some sort of list or shortened node would be possible for viewing one line and doing quick assessments?
Thanks for any tips!
Problem Solved.
I just hate it when you can only find drupal questions and NO answer. So here is what I do.
A. I use fivestar & voting api module with drupal 5
B. Create a content type with fivestar as a field
C. Create a view,
At page set 'view type' to Table View,
Add a field using (important ** Voting API percentage vote result (average)); handler = fivestar stars (clickable, with text),
Sort Criteria, use important ** VotingAPI percentage vote result (average); order descending
You can voting by clicking on the star which is great.
the china story blog
www.thechinastory.org
Thanks robert, that really
Thanks robert, that really helped.
sina.salek.ws, CIO & Lead developer
Feel freedom with open source softwares
sina.salek.ws, Software Manager & Lead developer
Feel freedom with open source softwares