Drupal view all comments on new page

To create a new page in Drupal that displays all comments, you can follow these steps:

Step 1: Create a new view

  1. Go to the Views module page at admin/structure/views.
  2. Click on the "Add new view" button.
  3. Enter a name and description for your view, and select "Comments" as the view type.
  4. Click "Save and edit" to create the view.

Step 2: Configure the view

  1. In the "Fields" section, add the "Comment" field to the view.
  2. In the "Filters" section, add a filter for "Comment type" and select "All comments".
  3. In the "Sort criteria" section, add a sort criterion for "Comment created" and select "Descending" to sort the comments by date.
  4. Click "Save" to save the view configuration.

Step 3: Create a new page for the view

  1. Go to the "Pages" section at admin/structure/views/page.
  2. Click on the "Add new page" button.
  3. Enter a title and path for the page (e.g., "All Comments").
  4. Select the view you created in Step 1 as the view to display on this page.
  5. Click "Save" to create the page.

Step 4: Configure the page

  1. Go to the "Display settings" section at admin/structure/views/page/{page_path}/display.
  2. Select the "Full content" display type.
  3. In the "Fields" section, add the "Comment" field to the display.
  4. In the "Filters" section, add a filter for "Comment type" and select "All comments".
  5. Click "Save" to save the display settings.

Step 5: Test the page

  1. Go to the page you created (e.g., example.com/all-comments).
  2. You should see a list of all comments on the page.

That's it! You should now have a new page in Drupal that displays all comments.