strapi-plugin-comments icon indicating copy to clipboard operation
strapi-plugin-comments copied to clipboard

How add custom field to comment (v2.2.15)

Open Antontsyk opened this issue 1 year ago • 8 comments

How add custom field to comment for example:

  • likes
  • disLikes
  • stars

Antontsyk avatar Sep 20 '23 18:09 Antontsyk

@Antontsyk you need to use Strapi Extension concept and amend Comment scheme.

If that's not a priority for you I would advice to wait couple weeks as we're working on such feature integration anyway.

cyp3rius avatar Sep 21 '23 06:09 cyp3rius

Hi @cyp3rius. It is great you're working on that feature. It would be great if some customisation could be eased as adding your own reactions. So for example, not only like/dislike/start but agree/disagree or any other that is reasonable for the app developer.

fontanon avatar Sep 21 '23 20:09 fontanon

@cyp3rius hello, do you know approximately when stars/likes feature will be available?

janlew avatar Oct 18 '23 09:10 janlew

Its near to release 😀

https://github.com/VirtusLab-Open-Source/strapi-plugin-reactions

Possible to do now by your own (still beta) or wait around 2-3 weeks for RC and built in integration in Comments plugin.

cyp3rius avatar Oct 18 '23 09:10 cyp3rius

@cyp3rius it's possible to make stars in 1-5 range + review (like comment) with new plugin "strapi-plugin-reactions"? or I should use "strapi-plugin-comments" + custom fields to do that?

janlew avatar Oct 27 '23 15:10 janlew

The Reactions plugin is generic and its possible to link with any Content Type. I can advice to create 5 reactions like stars 1-5 and calculate rating on average off all reactions.

Hope that helps.

cyp3rius avatar Oct 27 '23 15:10 cyp3rius

Can I receive the number of likes simultaneously when returning to the comment tree?

glacierck avatar Nov 15 '23 03:11 glacierck

Using the Reactions plugin yes. We are working on built-in integration as well.

cyp3rius avatar Nov 15 '23 06:11 cyp3rius