TEMPLATE CONTROL: This tag is valid in list view and detail templates.
Displays average ratings for a record and allows users to submit their own rating for a given record.
|
location |
Defines where the images are stored. Valid values are “portal”, “xmod” and “url” |
|
fullimage |
File name for the image that represents a full value. If URL is selected then the whole path to the image is needed. |
|
emptyimage |
File name for the image that represents an empty value. If URL is selected then the whole path to the image is needed. |
|
ratingscale |
Defines the maximum value for the vote. |
|
allowratings |
Defines who can register a vote. Valid values are registered and all. |
<div style="width: 550px; text-align: left;">
<h1 style="text-align: center;"><xmod:field name="MovieTitle"/></h1>
<p style="font-family: Verdana;">
<span style="font-weight: bold;">Plot:</span> <xmod:field name="Synopsis"/></p>
<div style="text-align: center;">
<img width="150" height="218" src="<xmod:field name="MovieArt"/>" alt="<xmod:field name="MovieTitle"/>" />
</div>
<br />
<h2>User Ratings</h2>
<xmod:ratings location="portal" fullimage="fullStar.gif" emptyimage="emptyStar.gif" ratingscale="5" allowratings="true" />
<br />
<br />
<xmod:comments commentsdisplay="5" allowcomments="all" numbercomments="1" commentsfrequency="minute" sortorder="NewestFirst" requireapproval="false">
<itemtemplate>
<span><div style="background-color: silver;" class="UserComment"> <b>{username}</b> - <i>{postdate}</i></div></span>
<span><div style="text-align: left;"> {comment} <br><br> </div></span>
</itemtemplate>
<alternatingitemtemplate>
<span><div style="background-color: lightblue;" class="UserComment"> <b>{username}</b> - <i>{postdate}</i> </div></span>
<span><div style="text-align: left;"> {comment} <br /><br /> </div></span>
</alternatingitemtemplate>
<header>
<h2 style="font-family: verdana; size: 8px;">User Comments</h2>
</header>
<editor style="width:500px;" label="Comment:" username="Your name:"/>
<submitbutton text="Submit Comment" />
<pager enabled="true" nexttext="Next" prevtext="Previous" display="button" />
</xmod:comments>