silverstripe-comments/docs/en/Installing.md

22 lines
920 B
Markdown
Raw Normal View History

# Installation
Then in the root of your project run:
```sh
composer require silverstripe/comments`
```
Then run a database rebuild by visiting `dev/build`. This will add the required database columns and tables for the module to function, and refresh the configuration manifest.
## Enabling Commenting
2010-12-13 00:48:20 +01:00
Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off on a per page basis in the CMS under the `Behaviour` tab for a given page. Once the `Allow Comments` checkbox is ticked, republish and view the webpage.
2010-12-13 00:48:20 +01:00
For more configuration options see [Configuration](Configuration.md).
## Upgrading
### Migrating from version SilverStripe 2 installations
2010-12-13 00:48:20 +01:00
This module replaces the built-in commenting system available in SilverStripe 2. Running the `dev/build` task will automatically perform a migration if any comments from these old versions exist.