Try Now
More in this section

Forums / Developing with Sitefinity / Create Vote button for posts

Create Vote button for posts

2 posts, 0 answered
  1. Nghi
    Nghi avatar
    8 posts
    05 Apr 2016
    27 Apr
    Link to this post

    I am trying to create a custom blog post for single item. I've just relized that we've already have a data call Votes Count and we can easily add it to the front-end by following code:


    <sitefinity:TextField ID="TextField1" runat="server" DisplayMode="Read" Value='<%# Eval("VotesCount") %>'>



    The question is how can i create a vote button to make this data increase. Is there any built-in widgets for this feature or do i have to create a custom widget by myself?



  2. Seth Cleaver
    Seth Cleaver avatar
    24 posts
    02 Aug 2016
    03 May
    Link to this post

    Thanks for evaluating Sitefinity.

    This functionality is depreciated as we introduced the comments module with rating a few versions ago which replaced the votescount and votessum fields. The new comments module can handle ratings and comments for any content type.

    The new comments module allows you to enable the user rating which then calculates the popularity value for you. To enable the rating review the documentation here: http://docs.sitefinity.com/administration-enable-comments-and-ratings

    I hope this helps

    Seth Cleaver
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered