This is a topic for starRating
DESCRIPTION
This Snippet displays an image of Stars in relation to the "starRating_Rating"
passed to it.
PARAMETERS:
&starRating_Rating integer - The rating to display (from 0-10 in .5 steps). REQUIRED!
$tpl string - the template chunk to use. Default: starRating_Tpl
$range = integer - the max range of the rating (Five or Ten). Default: Ten
$image = string - the path to the sprite image. Default: assets/components/starrating/starSprite.png there is also a half size version named starSprite_sm or you can create your own.
$width = integer - the width of the display block. 1/2 the image width in pixels. Default: 360
$height = integer - the height of the display block. 1/2 the image height in pixels. Default: 36
version 0.7.1-beta1
author Jerry Mercer (ultravision.net)
credits Many thanks for the ideas and work of Abdullah Rubiyath
USAGE: All but starRating_Rating are optional
[[!starRating?
&starRating_Rating=`5`
&starRating_Tpl=`starRating_Tpl`
&starRating_Range=`Ten`
&starRating_Image=`assets/components/starrating/starSprite.png`
&starRating_Width=`360`
&starRating_Height=`36`
]]