ASPX templates
Version 4.x > ASPX templates > Content Rating Web Part - Stars not showing View modes: 
User avatar
Member
Member
Jimmy - 4/8/2009 7:32:55 PM
   
Content Rating Web Part - Stars not showing
Hi

I am trying to get the content rating web part working.

I have added the following to my page template that I use for Articles:

<%@ Register Src="../../CMSWebParts/ContentRating/ContentRating.ascx" TagName="ContentRating" TagPrefix="uc1" %>


<uc1:ContentRating ID="ContentRating1" runat="server" CheckIfUserRated="true" MaxRatingValue="5" MessageAfterRating="Thank you!" RatingType="stars" ResultMessage="{0:0.#} ({1} ratings)" ShowForDocumentTypes="cms.article" ShowResultMessage="true" AllowForPublic="true" CheckPermissions="true" />


The results message show up but the Stars do not? Can you let me know what I might be missing?

Also can you add a webpart to a Transformation? I ask this becasue I am using a repeater to display my articles and i want the Ratings to be positioned next to the Heading of the article. Can it be put tin the Transformation?

Thanks in advance

Jimmy

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/9/2009 7:56:04 AM
   
RE:Content Rating Web Part - Stars not showing
Hi,

I assume tha you are using your custom CSS styles. It is possible that you are missing the styles for the stars. This is the code from the default style sheet:

.ratingStar 
{
font-size: 0pt;
width: 13px;
height: 12px;
margin: 0px;
padding: 0px;
cursor: pointer;
display: block;
background-repeat: no-repeat;
}

.filledRatingStar {
background-image: url(../App_Themes/Default/Images/CMSDesk/Content/Properties/ContentRating/FilledStar.png);

}

.emptyRatingStar {
background-image: url(../App_Themes/Default/Images/CMSDesk/Content/Properties/ContentRating/EmptyStar.png);
}

.savedRatingStar {
background-image: url(../App_Themes/Default/Images/CMSDesk/Content/Properties/ContentRating/SavedStar.png);
}


Regarding the transformation - you can use the "Eval" function. The ratings are stored in the CMS_Document table, so you can evaluate the "DocumentRatingValue" column.

Best Regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 10/17/2012 5:30:50 AM
   
RE:Content Rating Web Part - Stars not showing
Hi Jurajo,

I am facing the problem when I add Insert Rating widget in WYSIWYG editor.

The container title and rating result is visible properly but not the rating stars. The HTML code for stars is disabled in Firebug.

Thanks and regards,
Sachin



User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/18/2012 1:36:34 AM
   
RE:Content Rating Web Part - Stars not showing
Hi,

Answered here. You do not need to open multiple threads for the same issue.

Best regards,
Juraj Ondrus