3

I have Player (Entity) which is referenced on a Match (Content Type).

Now I'd like to Rate (from 0 to 10) the player for every match and get the average rating, can someone point me to the right solution.

  • do you got some advance? – Adrian Cid Almaguer Feb 2 '16 at 1:21
  • It did work yes. – khoy Feb 4 '16 at 13:49
  • Well I'm happy for you ;-) good luck in your projects – Adrian Cid Almaguer Feb 4 '16 at 13:50
2

You can make a View and use the Views Aggregator Plus or Views Calc.

From Views Calc module page:

This module adds simple calculations to a views table.

You can SUM, AVERAGE, COUNT, MIN, MAX, or AVG selected columns. A plug in theme makes the view look more spreadsheet-like (right justifies numeric fields, shades calculated columns and rows, and underlines calculated rows).

You can found some screenshots here: How can I show average votes of fivestar nodes?

  • I'm not sure it will work if i have more than 1 player per match... – khoy Jan 28 '16 at 0:50
  • @khoy I think that this will work, just make a test and let me know – Adrian Cid Almaguer Jan 28 '16 at 0:52
  • Okay i'll try both modules. – khoy Jan 28 '16 at 0:56
  • 1
    @khoy : which of both modules did you end up with? PS to Adrian: merci for promoting "Views Calc" ... again ... (disclosure: I'm a co-maintainer of it) Should you ever want to reuse screenprints, feel free to use the ones I included in drupal.stackexchange.com/questions/116054/… ... – Pierre.Vriens Mar 10 '16 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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