Heya,

I have a node reference voting scheme, where I have a node type 'university' that is being reviewed by a node type 'university review'. I upgraded fivestar to 7.x-2.x-dev and I was able to figure out the widget changes on the content types & fields, but I can't figure out how to display the stars format as the aggregate rating in the view. I have added a relationship to the vote results, then I added a 'vote results' field using that relationship, but it only gives me the option to show a percentage or number of votes.

Have been searching the issue queue to no avail. Can someone explain how to do this?

Comments

ericduran’s picture

Hmm, This might be a bug.

I actually never tried showing referenced values in a view. That being said ideally it would work like showing any other field. I just haven't tested.

I'll look into this.

Louis Bob’s picture

Hi, could you resolve this issue? I'm facing the same problem...

calefilm’s picture

Issue summary: View changes

Was this ever solved? I'm also looking to bring in 'star display' within the Data Filters in Views Relationships.

Objective: I would like to display number of stars in a field but doing so using the Vote Results relationship in Views

I have a view with fields.

Relationship
Content: Vote Results
-Value Type: Percent
-Vote Tag: vote
-Aggregation function: Average votes

In field, i select 'Vote Results' and add the relationship. And the field displays as a percentage. I would like to have the option to display this field as stars.

Was this already solved somewhere else?

Having said all of that, this feels like a simple template/theme output fix... If this is the case, would somebody please reproduce the steps in order to change a percentage to stars in this use-case? Thank you.

dbt102’s picture

There has been many patches since this issue was posted over five years ago. Did you use the most recent _dev from here --> https://www.drupal.org/node/103123/git-instructions/7.x-2.x ?

calefilm’s picture

Thank you for your response. Well, I have updated to the newest Dev version and don't see any patches related to this issue.