Hello,
I have tried to add a like button to my webflow CMS content. However, when I press like it likes every item in the collection. Is there a way that I can make sure that the like applies to each item independently.
Hello,
I have tried to add a like button to my webflow CMS content. However, when I press like it likes every item in the collection. Is there a way that I can make sure that the like applies to each item independently.
Since the custom code is placed inside the collection it replicates the exact same function for each item. You need to use a variable (e.g. you could use a CMS field) that is unique for each item (data-identifier) so that the like function works the way you want.
Hi Gail thank you very much this makes sense. The only thing is I am not quite sure how I would go about this? Would you be able to offer up further advice please?
Yes, you need a unique field for each item in your collection to set for the data-identifier in your code.
Thanks Gail I did it!!
@Tosin_Aking hey man can you help me out on how you are doing this?