I have two content types: 1. Restaurant page 2. Write a review page The write a review page has node reference url widget field and also the fivestar rating field. The image attached below will explain more: enter image description here

I have created a view page, where I want to get vote average results for each restaurant (also if possible than on each individual restaurants page too). I basically want average result of ratings given to each restaurant page by the node reference content type which is write a review page. Below are two images explaining my view: enter image description here

And the preview: enter image description here

Now I am really not sure what I am doing wrong here, I changed aggregation settings for all randomly to average to count to all the possible scenarios but nothing seems to work. The votingapi_vote table is also empty, I know that fivestar doesnt necessarily use those tables to store, but then how could I display the stars or even the average of all the ratings that restaurant has got?

------------ update 1 -------------------------

Here is the relationship content type which I am getting: enter image description here

1 Answer 1


Can you add a relationship of referenced node? or referenced write a review?

If not use the entity reference module instead. Add an entity reference field, with auto complete widget. Bundle type: Node.

Then in view add a relationship of referenced write a review.

  • I updated my answer, I have used the one which says in the end reverse, but it didnt help me. I am not actually aware of entity reference module, I felt its too much of learning for that. Commented Feb 7, 2016 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.