Search code examples
phpdrupaldrupal-modulesratingfivestar

drupal fivestar rating


I want some suggestion regarding the usage of fivestar rating module in drupal. The requirement is like this:

A customer can rate a manufacturer according to service, quality of work, overall score etc. But I am not sure as to how can I integrate this functionality using fivestar module? any ideas?!

EDIT - 1

What I meant was that, can I achieve this functionality through drupals fivestar rating module?! or should I develop another module of my own?!


Solution

  • Assuming "manufacturer" is a content type or a user a quick and simple way can be seen below:

    1. Create a new content type called something like "review" or manufacturer review", etc
    2. Add a node reference/user reference field to the content type (depending on the manufacturer's type) so that customers can link their review to a specific manufacturer
    3. Add Fivestar Rating fields to the review content type for each of your criteria (service, quality, overall score, etc)

    Now you a content type of reviews that you can use however you like (with Views module, etc).

    EDIT: To use a node reference/user reference field, you will need to have the CCK module installed and enabled. A good description/source of info on the node reference field can be found at http://pras.net.np/blogs/guide-cck-nodereference

    You may also want to take a look at the Node comments module or the Custom review module to integrate with Fivestar to create a custom review process. For more information about creating a custom review process with these modules, see Fivestar's Documentation.