mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
d5b9a2818c
Adding information about $CommentsForm tag to help people with this module.
766 B
766 B
Installation
Then in the root of your project run:
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
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.
For more configuration options see Configuration.
Displaying Comments
To display form and comments simply add
{$CommentsForm}
to your .ss
file.