Hi there.
I am trying to implement a like button and view count functionality, but im finding it too difficult to implement this from core, thus I’m thinking if theres a way to implement it from the themes.
The idea is, that from the theme post.hbs file, i would make ajax calls to my custom service which contains the records of likes and views.
the issue is that i need to be able to identify:
- The current post.
- The user who is browsing the post, if they have signed in.
All i need is some kind of ID for both of these entities and i could implement this.
Please help me out here, and feel free to suggest any other way to approch this. Thanks a lot.