Like Button Counter

(Rob) #1

Hi all,

I’ve been trying to find a solution to creating a blog article like button that records an onClick event for users to like the article and also displays the total number of likes. I’m having difficulty establishing how to store the ‘like’ data when a new article (or asset) is created.

I notice there is an asset hit-count feature. Would there be a way of manipulating it to work with the like button click and displaying the total?

Any help is most appreciated! Thanks.


(Nic Hubbard) #2

I did this quite a few years ago and it worked well. Just setup a Trigger with the asset accessed option and then do a POST using jQuery when the user taps the link button.

(Bart Banda) #3

You could do something like Nic suggested, fire a trigger that increments a metadata field for example.

But why not use some dedicated free tools like this:


(Rob) #4

Nic / Bart - thank you so much for this!

Will see how I get on with the Trigger option as the articles won’t necessarily be linked to facebook.

I’ll report back if we’ve managed to solve it!