3 Replies Latest reply on Dec 7, 2017 5:50 AM by gvdd

    How to like using frontend javascript / REST API?

    jordan.van.bergen@copaco.com

      Does anyone know how to like a blogitem I got using the REST API and putting them on the screen using a custom addon and frontend javascript?

       

      So what I am able to do is:

       

      1. Create a custom addon

      2. Get blogitems using the REST API

      3. Show the blogitems using jquery or javascript

      4. Show the total views and likes on the blogitem (info comes from the REST API)

       

      Now I need to add interaction to the items? I want people to be able to like the item as a start.

       

      Anyone an idea or suggestion on how to get a working LIKE button using custom addons and frontend javascript coding only? Or any other solution on how to achieve this?