VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
413 stars 65 forks source link

adding comments to content type disables content manager #207

Closed pguardiario closed 1 year ago

pguardiario commented 1 year ago

Is this normal behavior? I think I might have misunderstood how to set this up.

I don't see anywhere in the docs where it explains how to set up comments for a content type so I'm hoping someone can look at this and tell me if I did it right

image

cyp3rius commented 1 year ago

@pguardiario that explains everything - https://github.com/VirtusLab-Open-Source/strapi-plugin-comments#in-v203-and-newer

pguardiario commented 1 year ago

Thanks @cyp3rius. Apparently I should follow "v2.0.3 and newer" instructions: these say: Version 2.0.3 introduce the intuitive Settings page which you can easly access via Strapi Settings -> Section: Comments Plugin -> Configuration. On dedicated page you will be able to setup all crucial properties which drives the plugin and customize each individual collection for which Comments plugin should be enabled.

Ok so far.... so on this page I have to enable comments for certain content types which I have done: image

but doing this disables content manager for these types. It's not cealr if that's expected or where to go from here...

Any other help is greatly appreciated

pguardiario commented 1 year ago

also FYI, not selecting any content types results in it not working at all, which I expect is a bug

cyp3rius commented 1 year ago

@pguardiario just checked.

but doing this disables content manager for these types. It's not cealr if that's expected or where to go from here...

It does not happening to me. Can you please elaborate by how the Content Manager is disabled? I'm able to add new items as Pages as well for Content Type Builder I'm able to edit the Collection without any issues if Strapi is not runned in production mode.

also FYI, not selecting any content types results in it not working at all, which I expect is a bug

That's the translation mistake, the not been missed. So works as expected.

pguardiario commented 1 year ago

the types I enable comments for no longer show in the content manager image

cyp3rius commented 1 year ago

That's really odd behaviour @pguardiario . Our plugin stores just a "string" reference to selected types like uid and does not modify anything outside of plugin scope (it's disallowed and locked).

May I ask you on what settings you're running your Strapi instance?

pguardiario commented 1 year ago

Thanks for the reply, I actually got it fixed but I'm not sure how. Here are some steps I took:

hopefully that will help someone. feel free to close this one.

cyp3rius commented 1 year ago

Glad to hear you sorted it! In some free time I will try to reproduce it based on your steps and figure out what the cause might be.