Star widget for integer field

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tmuras's picture

I was looking recently for a widget that could display rating results, say as stars. I don't need any voting/rating functionality - just a widget to display number stars, based on what editor has put for a given content. The rating could be stored as simple integer field, which has lead me to an idea of creating new display widget for integer field. You could configure what kind of image (or any other custom HTML) should be repeatably displayed instead of the integer number, you could also set up another image to be displayed for another (maximum value - current value) number of stars - to possibly get an effect of bright N stars and then "switched off" M stars next to them.

I'm not sure if the idea is worth development, any thoughts?

Comments

Hello tmuras, I believe this

patrickavella's picture

Hello tmuras,

I believe this functionality is already available by using http://drupal.org/project/computed_field

Of course something like computed_field is very generic and handles a lot of different functionality, but my personal opinion is that it's quite adequate for doing what you propose with not too much effort.

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week