getcontentratinglist
Date: 20-11-2007 12:04 Views: 1999 Author: Colin Polonowski
Description:
Displays a list of content and associated average reader ratings.
1. ratingid - each piece of content can have multiple different reader ratings. This is a numerical value
2. template - the template that each piece of content will be displayed in
3. orderby - the database field to order the data by. Recommended value: 'average_rating desc'
4. start - the content element to start the list from from. Recommended value: 0
5. elements - the number of elements to display
6. nocontenttemplate - the template to display if there are no valid pieces of content to display (optional)
Syntax:
(getcontentratinglist|ratingid|template|orderby|start|elements|nocontenttemplate)
Templates can include the function specific 'average_rating' content element.
Example:
- (getcontentratinglist|1|Index:RatingRanking|average_rating desc|0|10|NoContent)
Displays the list of content with rating id 1, using the Index:RatingRanking template ordering by average_rating descending. There will be 10 pieces of content starting from 0 and if there is no content then the NoContent template will be displayed instead
Related functions:
contentrating

