# No Reply Comments Thread

## Overview

![](https://4051367598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD8v0DEN20QQwdYStdXm8%2Fuploads%2Fhy2e5Q4BJT1H1qUtrtBg%2F2.png?alt=media\&token=2405b36f-4e6f-4ef0-94c4-bc10f80157b6)

This block is a list of comments or messages by different users, with the ability for a user to create a new comment. It can be added on any object (a topic, a product, etc.).

## Structure

* When this block is added to a page, it is placed within a group called **Blocks container 860 (do not rename)** on the page. This group contains the responsive settings for all blocks.

![](https://4051367598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD8v0DEN20QQwdYStdXm8%2Fuploads%2FpsBLUeKV7jLnL7sUs2m1%2F3.png?alt=media\&token=002485e2-5af2-4c9d-9c61-32d62d958443)

* The block also comes with a data type called `t-Comments`.  This is the data type that will store all of the comments.
* All of the comments are displayed in **RepeatingGroup t-Comment.**
* **Button POST** creates a new comment.

## How to set up

* Add a field to the `t-Comment` data type that represents the object on which you want users to comment. For example, if you want users to comment on products, you should add a `Product` field.
* Open the **comments\_onelevel** reusable&#x20;
* Modify the type of content displayed in the reusable to be whatever object for which you want to show comments. In this case you should make the group type be `Product`.

![](https://4051367598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD8v0DEN20QQwdYStdXm8%2Fuploads%2FkZt7lInVVMevnNJA2D8x%2F4.png?alt=media\&token=2a059f17-8cd7-441f-87ad-afb704d62dda)

* Modify the data source for **RepeatingGroup t-Comment** to include whatever filter you need. In this case, you should only include comments that are linked to the Product being displayed. &#x20;

![](https://4051367598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD8v0DEN20QQwdYStdXm8%2Fuploads%2FUOvnjtfbGiOlOb4tYnSu%2F5.png?alt=media\&token=6824c158-a71b-4b6f-8a57-7be47ef3da53)

* Modify the action that runs when the **Button POST** is clicked to also link the `t-Comment` created to the relevant object, in this case the Product that's displayed in the reusable.

![](https://4051367598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD8v0DEN20QQwdYStdXm8%2Fuploads%2FbA2NhTChqEyh16vCy864%2F6.png?alt=media\&token=64b70c65-605f-4c5b-af9c-c6a455c3396c)

* Add a data source whenever you use the **comments\_onelevel** reusable that links to the appropriate object (in this case the `Product` that's displayed on the page).

![](https://4051367598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD8v0DEN20QQwdYStdXm8%2Fuploads%2Fe6FKOv9rc2Husk4L8kUm%2F7.png?alt=media\&token=e70f8147-abee-4fc8-92df-a51d20a21764)
