jsalgado10 / Commentator.OrchardCore

Orchard Core Internal Comment Engine
MIT License
17 stars 5 forks source link

The CommentatorPart does not work #8

Closed fenngineering closed 3 years ago

fenngineering commented 3 years ago

Hello,

I am trying to integrate with the CommentatorPart but I am struggling to get it working on my site.

I am using the latest RC2 branch of OrchardCore and I have got the latest Commentator.OrchardCore dependency added to mu solution.

When I get into the Admin features I do see the module added, so I enabled this. image

I have also set the Security\Roles sections for Anonymous image

I was expecting that the CommentatorPart would be visible in the Content Definition\Content Parts in the Contents section however it isn't, when I try to "Create a New Part" with the CommentatorPart as a name, I get this error:- image

I would have expected to see the CommentatorPart in this "Add Part" section of my "Article", As you can see is is not available image

Please could you give me some advice on why this may not be working?

This is my github repo https://github.com/fenngineering/FennasPrem

My sites are is a SaaS site and a tenant using the Blog recipe.

Kind regards Andy

jsalgado10 commented 3 years ago

I setup a new tenant using your code and the blog theme and I can see the commentator part. Can you try setting up a new tenant and enable the commentator module, then see if you are able to see the commentator part?

Thanks

jsalgado10 commented 3 years ago

One more thing, make sure that the commentator part is flag as attachable, otherwise the content part will not show up on the list

image

fenngineering commented 3 years ago

@jsalgado10 Thanks for speedy reply, that actually worked from a reinstallation of the SaaS and Tenant, I can now see the comments section - Brilliant.

One question that I have, is how do you add this feature to an already established site(s) I suspect there's got to be an "Update" the database to include this new Part, or can this be done from the code base?

Kind regards

jsalgado10 commented 3 years ago

@fenngineering when you enable the commentator feature, it will add the commentator part and comment Post content type . you will need to add the commentator part manually to your own content type. I am using a migration script to add the new part and content type to your tenant.

Check out the commentator.recipe.json file under the Migration folder.

fenngineering commented 3 years ago

Please close this issue as I managed to merge the commentator.recipe.json with my live ContentDefinition.json for the tenant and it work as above.

Thanks for your help

jsalgado10 commented 3 years ago

No problem.

Also keep in mind that starting with NuGet package version 1.0.8, I am using Orchard Core 1.0.0-rc2-15787.

fenngineering commented 3 years ago

Will you be adding moderating features as some point like an approval\rejection etc?

jsalgado10 commented 3 years ago

Yes I have added a new Issue #9 for this request

Line4GitHub commented 3 years ago

Can you tell me when you will update Commentator.OrchardCore to Orchard Core 1.0.0-rc2-15949 ~ 16238 ? Thank you very much!