I need to like AND to dislike contenttyps, but the total likes should be displayed as Likes - Dislikes. I tried to use the "flag" module and created two different flags (one for likes, one for dislikes) but this leaves me with two problems

  1. I need to get the total count of the likes (likes - dislikes) within a view - how can I do this??
  2. Can I disable the like/dislike button, if it was already clicked? So you can like and dislike but only once (no toggle).
  • Have you looked at the Rate module?
    – User
    Sep 5, 2014 at 3:00

1 Answer 1


You might be able to customize the excellent tutorial on the use of Ajax for Like and Dislike using voting API by Amitav Roy. His primary purpose is to show the reader how to use AJAX, but the code is solid and seems to suit your purpose.

  • Thx, I was hoping for a simpler way to do this - but if I can't find anything I'm going to try this out.
    – scar
    Jun 9, 2013 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.