> ## Documentation Index
> Fetch the complete documentation index at: https://docs.t3planet.de/en/latest/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

## Default settings from Constants

First of all, Configure Default settings in Constants

* Step 1: Go to Template.
* Step 2: Select root page.
* Step 3: Select Constant Editor from drop-down.
* Step 3: Select Constant Editor > PLUGIN.TX\_NSCOMMENTS.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/t3planet/en/latest/ExtNsComments/GlobalConfiguration/images/configuration_1.webp" alt="Select extension in Constant Editor" />

**Email Configuration**

Here, you can configure the emails received by Admin when visitor add comment.

<img src="https://mintcdn.com/t3planet/3PDW_dCYCh5_ca5b/en/latest/ExtNsComments/GlobalConfiguration/images/email_settings.webp?fit=max&auto=format&n=3PDW_dCYCh5_ca5b&q=85&s=49dac7faafe3eaab899add45381d0146" alt="Email Settings" width="1070" height="746" data-path="en/latest/ExtNsComments/GlobalConfiguration/images/email_settings.webp" />

* **Enable Mail:** Check this checkbox to enable Email to Admin whenever any comment is posted.
* **\[TO] E-Mail:** Set the Email address where Email should be sent. Generally it is Admin's email.
* **\[TO] Admin Name:** Set the Admin name.
* **\[FROM] E-Mail:** Set From Email for email sent to Admin
* **\[FROM] Name:** Set Sender Name for email sent to Admin
* **Subject:** Set Email Subject.

**Comment Configuration**

<img src="https://mintcdn.com/t3planet/3PDW_dCYCh5_ca5b/en/latest/ExtNsComments/GlobalConfiguration/images/comment_configuration.webp?fit=max&auto=format&n=3PDW_dCYCh5_ca5b&q=85&s=f01a8366c0242be240010371911b35ec" alt="Comment Settings" width="1600" height="487" data-path="en/latest/ExtNsComments/GlobalConfiguration/images/comment_configuration.webp" />

* **Add Sitekey for Google reCAPTCHA v2:** Set Google reCaptcha v2 sitekey. You can get it from here: [https://www.google.com/recaptcha/admin/create](https://www.google.com/recaptcha/admin/create)
* **Terms typolink parameter:** Set the Terms page for above checkbox.
* **Terms required:** Check this checkbox to add Terms checkbox in Comment form. This will be required field.
* **Set Approval by admin:** If this checkbox is checked, only those comments will be published which are enabled by Admin/System user. When visitor add any comment, by default, it will be disabled in backend. Once Admin/system user enables it, it will be displayed on page. If checkbox is unchecked, all comments posted by visitors will be displayed immediately on page.
* **Maximunm comments from single IP address:** Maximum allow comment from Single IP address for Spam protection.
* **Block Comment Upto(Hour):** Block comments for defined time interval,it will protect site from adding unnecessary comments.

**CSS/JS Settings**

<img src="https://mintcdn.com/t3planet/3PDW_dCYCh5_ca5b/en/latest/ExtNsComments/GlobalConfiguration/images/cssjs_settings.webp?fit=max&auto=format&n=3PDW_dCYCh5_ca5b&q=85&s=494956a037ee7ee873963f0f03efda18" alt="CSS/JS Settings" width="1011" height="440" data-path="en/latest/ExtNsComments/GlobalConfiguration/images/cssjs_settings.webp" />

Here, you can set your own CSS & JS for this extension.

**Main Configuration**

<img src="https://mintcdn.com/t3planet/3PDW_dCYCh5_ca5b/en/latest/ExtNsComments/GlobalConfiguration/images/main_settings.webp?fit=max&auto=format&n=3PDW_dCYCh5_ca5b&q=85&s=07f79f4ca7a8dee9e170a530c0c46e21" alt="Main Settings" width="1189" height="677" data-path="en/latest/ExtNsComments/GlobalConfiguration/images/main_settings.webp" />

Here you can set default setiings of Comments plugin. If any of the field in Comment plugin is not defined, value set here will be used.
