dc1f8622e0
Anonymous comments (posted by the public at large) must have a name and an email address associated with them. On the other hand, a logged in user will have the `Member` record details used for this information, via the Author relationship. However the summary fields do not allow for this, and only reference Name and Email on the Comment model directly, so any comment posted by a logged in member has no data for name and email displayed in the various GridFields in the CMS for administering comments (either per page, or in the global ModelAdmin). To recitfy this we can change the summary fields to use getter methods that will return the Comment model info, or fall back to the Author associated Member record if Name and Email are unset on the Comment. |
||
---|---|---|
_config | ||
.tx | ||
css | ||
docs/en | ||
javascript | ||
lang | ||
scss | ||
src | ||
templates | ||
tests | ||
thirdparty/jquery-validate | ||
_config.php | ||
.codecov.yml | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.scrutinizer.yml | ||
.travis.yml | ||
.upgrade.yml | ||
code-of-conduct.md | ||
composer.json | ||
license.md | ||
package.json | ||
phpcs.xml.dist | ||
phpunit.xml.dist | ||
README.md | ||
webpack.config.js | ||
yarn.lock |
Comments
Introduction
This module provides commenting functionality for Pages and other DataObjects on your SilverStripe site.
For more documentation about the module see the provided documentation located inside the docs folder.
Requirements
- SilverStripe ^4.0
Note: This branch is compatible with SilverStripe 4. For a SilverStripe 3 release, please see the 2.x release line.
Installation
composer require silverstripe/comments
See docs/en/Installing.md
Related
- silverstripe/silverstripe-comments-notifications: Comment admin email notifications module
Contributing
Translations
Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.
Please use https://www.transifex.com/projects/p/silverstripe-comments/ to contribute translations, rather than sending pull requests with YAML files.
See the "i18n" topic on doc.silverstripe.org for more details.