> ## 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 Typoscrip.
* Step 2: Select root page.
* Step 3: Select Constant Editor from drop-down.
* Step 3: Select Constant Editor > PLUGIN.TX\_NSNEWSCOMMENTS.

<img src="https://mintcdn.com/t3planet/dI7I5_rtIfJq6RpY/en/latest/ExtNsNewsComments/GlobalConfiguration/images/Configuration_1.webp?fit=max&auto=format&n=dI7I5_rtIfJq6RpY&q=85&s=3dc33da763d2ea49461956887ef9b1f8" alt="Select extension in Constant Editor" width="1920" height="619" data-path="en/latest/ExtNsNewsComments/GlobalConfiguration/images/Configuration_1.webp" />

**Email Configuration**

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

<img src="https://mintcdn.com/t3planet/dI7I5_rtIfJq6RpY/en/latest/ExtNsNewsComments/GlobalConfiguration/images/Mail_configuration.webp?fit=max&auto=format&n=dI7I5_rtIfJq6RpY&q=85&s=5f58e507d49dd406b1b3cfb97505dca4" alt="Email Settings" width="1894" height="782" data-path="en/latest/ExtNsNewsComments/GlobalConfiguration/images/Mail_configuration.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/dI7I5_rtIfJq6RpY/en/latest/ExtNsNewsComments/GlobalConfiguration/images/comment_Configuration.webp?fit=max&auto=format&n=dI7I5_rtIfJq6RpY&q=85&s=0e5531141d54e15f9dfdc8d00e6ee516" alt="Comment Settings" width="1905" height="793" data-path="en/latest/ExtNsNewsComments/GlobalConfiguration/images/comment_Configuration.webp" />

* **Terms typolink parameter:** Set the Terms page URL for above checkbox.
* **Maximum Comments from single IP address:** Set Maximum allow comment from Single IP address for Spam protection
* **Block Comment Upto(Hour wise):** Block comments for defined time interval,it will protect site from adding unnecessary comments
* **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)
* **TinyMCE API key:** Add TinyMCE API key for RTE Style, Here is Ref link for generating API key [https://www.tiny.cloud/blog/how-to-get-tinymce-cloud-up-in-less-than-5-minutes/](https://www.tiny.cloud/blog/how-to-get-tinymce-cloud-up-in-less-than-5-minutes/)
* **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.
* **Terms required:** Check this checkbox to add Terms checkbox in Comment form. This will be required field.

**CSS/JS Settings**

<img src="https://mintcdn.com/t3planet/dI7I5_rtIfJq6RpY/en/latest/ExtNsNewsComments/GlobalConfiguration/images/Css_js.webp?fit=max&auto=format&n=dI7I5_rtIfJq6RpY&q=85&s=fbc24827e798fdc5a5c8799133351a48" alt="CSS/JS Settings" width="1907" height="533" data-path="en/latest/ExtNsNewsComments/GlobalConfiguration/images/Css_js.webp" />

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

**Main Configuration**

<img src="https://mintcdn.com/t3planet/dI7I5_rtIfJq6RpY/en/latest/ExtNsNewsComments/GlobalConfiguration/images/Main_configuration.webp?fit=max&auto=format&n=dI7I5_rtIfJq6RpY&q=85&s=2c01b933e6b10fc3c71a51d6cf41842f" alt="Main Settings" width="1600" height="670" data-path="en/latest/ExtNsNewsComments/GlobalConfiguration/images/Main_configuration.webp" />

**Style Settings**

<img src="https://mintcdn.com/t3planet/dI7I5_rtIfJq6RpY/en/latest/ExtNsNewsComments/GlobalConfiguration/images/Style_setting.webp?fit=max&auto=format&n=dI7I5_rtIfJq6RpY&q=85&s=38ad3ec6891de9aec172cf8e81bd896a" alt="Main Settings" width="1893" height="788" data-path="en/latest/ExtNsNewsComments/GlobalConfiguration/images/Style_setting.webp" />

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