Module version(s) affected
5
Description
With a plain Silverstripe blog I get a double Comments tab on pages with CommentsExtension enabled. While the latter is added by CommentExtension::updateModerationFields, the former is just an empty tab. I think that is added by the scaffolding logic, although I don't understand why it does not show a GridField with all comments.
How to reproduce
Not sure what to put here. This is a basic Silverstripe 6 blog site configured in this way:
---
Name: resetcommentssitetree
After: commentssitetree
---
SilverStripe\CMS\Model\SiteTree:
extensions:
comments: null
---
Name: mycomments
After: resetcommentssitetree
---
SilverStripe\Comments\Controllers\CommentingController:
extensions:
- SilverStripe\SpamProtection\Extension\CommentSpamProtection
SilverStripe\Blog\Model\BlogPost:
default_notification_template: SilverStripe\CommentNotifications\CommentEmail
extensions:
comments: SilverStripe\Comments\Extensions\CommentsExtension
SilverStripe\Blog\Model\BlogPostNotifications:
notification_on_spam: false
---
Name: myantispam
Only:
moduleexists:
- silverstripe/spamprotection
---
SilverStripe\Comments\Controllers\CommentingController:
extensions:
- SilverStripe\SpamProtection\Extension\CommentSpamProtection
---
Name: myrecaptcha
Only:
moduleexists: undefinedoffset/silverstripe-nocaptcha
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
default_spam_protector: UndefinedOffset\NoCaptcha\Forms\NocaptchaProtector
UndefinedOffset\NoCaptcha\Forms\NocaptchaField:
site_key: ...
secret_key: ...
recaptcha_version: 3
Possible Solution
No response
Additional Context
No response
Validations
Module version(s) affected
5
Description
With a plain Silverstripe blog I get a double Comments tab on pages with
CommentsExtensionenabled. While the latter is added byCommentExtension::updateModerationFields, the former is just an empty tab. I think that is added by the scaffolding logic, although I don't understand why it does not show aGridFieldwith all comments.How to reproduce
Not sure what to put here. This is a basic Silverstripe 6 blog site configured in this way:
Possible Solution
No response
Additional Context
No response
Validations
silverstripe/installer(with any code examples you've provided)