Go to file
Dylan Wagstaff dc1f8622e0 FIX show name of members in summary tables
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.
2019-01-11 11:48:51 +13:00
_config Test fixes 2017-09-14 11:12:07 +12:00
.tx Remove Transifex configuration. Commit directly to lang files for SS3. 2017-12-18 18:14:53 +13:00
css Add phpunit, lint fixes and removed compass for webpack 2017-09-14 10:01:09 +12:00
docs/en Remove SS 2.x upgrade code that runs every build 2018-01-29 15:26:16 +13:00
javascript Added JS fix for reply forms - fixes issue where the submit button breaks due to incorrect use of the jQuery validate function 2018-06-25 13:25:08 +12:00
lang FIX Capitalise comment moderation action labels and update i18n syntax in templates 2018-11-27 13:27:19 +01:00
scss FIX: Redirect to a URL that does not indicate an error, style moderation method 2016-03-24 08:55:23 +07:00
src FIX show name of members in summary tables 2019-01-11 11:48:51 +13:00
templates FIX Capitalise comment moderation action labels and update i18n syntax in templates 2018-11-27 13:27:19 +01:00
tests FIX Comments GridField tests now use their own test stubs 2018-06-20 16:53:14 +12:00
thirdparty/jquery-validate Nested comments proof of concept 2015-04-21 11:12:42 +12:00
_config.php FIX Merge config in tests, add phpcs and add HTML purifier to Travis builds 2017-10-09 17:26:07 +13:00
.codecov.yml Add .codecov.yml file 2017-07-19 16:04:34 +01:00
.editorconfig Added standard editor config 2015-11-19 13:24:59 +13:00
.gitattributes NEW Convert to vendor module, add table_name to test stubs and add PHP 7.2 to travis 2017-12-12 17:03:04 +13:00
.gitignore Add phpunit, lint fixes and removed compass for webpack 2017-09-14 10:01:09 +12:00
.scrutinizer.yml FIX Fix CI builds, remove excessive Travis builds matrixes, update composer constraint for gridfield-bulk-tools 2017-01-27 12:48:57 +13:00
.travis.yml Add various recipe versions to Travis build matrix 2018-06-20 16:39:46 +12:00
.upgrade.yml Remove deprecated@2.0. Update Migrate task to check table name. Minor tweaks to class names. Use Director::absoluteURL. 2017-01-17 17:39:06 +13:00
code-of-conduct.md Added standard code of conduct 2015-11-21 20:12:57 +13:00
composer.json Remove obsolete branch alias 2018-06-11 12:15:09 +12:00
license.md Updated license year 2016-01-01 06:42:13 +13:00
package.json Add phpunit, lint fixes and removed compass for webpack 2017-09-14 10:01:09 +12:00
phpcs.xml.dist Remove redundant phpcs rules, reduce some line lengths and use injector to create checkbox fields 2018-09-24 18:09:25 +02:00
phpunit.xml.dist FIX Merge config in tests, add phpcs and add HTML purifier to Travis builds 2017-10-09 17:26:07 +13:00
README.md DOCS Update readme badges and add version support note 2017-12-18 14:11:51 +13:00
webpack.config.js Add phpunit, lint fixes and removed compass for webpack 2017-09-14 10:01:09 +12:00
yarn.lock Add phpunit, lint fixes and removed compass for webpack 2017-09-14 10:01:09 +12:00

Comments

Build Status Scrutinizer Code Quality Code Coverage

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

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.