Comments.Stars

Version: - string  

Summary

Returns a generic avarage value for the ratings - displayed with stars.

Settings

Returns the source code for the rating stars like this:

<img src="/Admin/Images/Rating/blankstar.png" alt="" class="ratingstar ratingstarblank" width="18" height="18" /> <img src="/Admin/Images/Rating/blankstar.png" alt="" class="ratingstar ratingstarblank" width="18" height="18" /> <img src="/Admin/Images/Rating/blankstar.png" alt="" class="ratingstar ratingstarblank" width="18" height="18" /> <img src="/Admin/Images/Rating/blankstar.png" alt="" class="ratingstar ratingstarblank" width="18" height="18" /> <img src="/Admin/Images/Rating/blankstar.png" alt="" class="ratingstar ratingstarblank" width="18" height="18" />

Remarks

 

 

Examples

Outputting the template tag

@GetString("Comments.Stars")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Comments.Stars"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Comments.Stars"); }

Outputting the template tag

<!--@Comments.Stars-->

Check if string has a value

<!--@If Defined(@Comments.Stars)--> Let's output this tag here: <strong><!--@Comments.Stars--></strong> <!--@EndIf(@Comments.Stars)-->