Develop a "Likes" link

Sherry Collins asked on May 27, 2015 20:41

I have a blog post where end users can read the blogs and comment. The comment is out of the box. What they want now is to implement a Likes that looks like the comment and they do not want to use a Facebook or 3rd party like.

Has anyone ever done this or knows of a KB that explains how to implement this?

Thanks.

Recent Answers


Brenden Kehren answered on May 28, 2015 21:54

Nothing out of the box. You may be able to repurpose the Ratings control and whenever someone "Likes" a comment, just default the rating of that comment to 1.

Other option would be to create a custom form control or a webpart that works with the comments and when a comment is liked then store a counter or a record in a table with the comment ID and total.

I think there are several ways to skin this cat, just pick your poison. :)

0 votesVote for this answer Mark as a Correct answer

Sherry Collins answered on May 29, 2015 18:46

Thanks for your answer. Since I am new to Kentico, I kinda need to stick to what I already know for now.

What I want to do is add the "likes" button through the transformation and every time that it is clicked then call a WebService passing the UserID and the DocumentID of the blog just liked. The method would insert into the database.

My question is how do I create a webservice in kentico. In the real world I would just create a webservice application in Visual Studio and add a reference in my project. Is there a KB that has information about creating a webservice. I found one reference, but its pretty old (version 5) and I don't know whether I can add my own methods or not.

Thanks.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.