Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Everything that's Changed With Comments in Drupal 8

Parent Feed: 

Comments were one of the more basic features in Drupal 7. There was only type of comment and you had very limited modification and moderation options. 

In Drupal 8, comments are vastly better. Here are 5 ways that comments have changed and improved:

#1. Comments have their own page

Go to Manage > Content, and you'll see that Comments have their own tab.

Inside the tab, "Published comments" and "Unapproved comments" are grouped together.

Everything that's Changed With Comments in Drupal 8

You'll be able to perform bulk operations on your comments:

One disappointment is that, unlike for Content and Files, there are no filter or search boxes for comments. I suspect that will be remedied by a contributed module, or in a future Drupal 8 update.

#2. Comments are fields

In Drupal 8, you add comments as fields. This allows you to be more flexible with where comments are displayed on a page. It also allows comments to go anywhere that fields are allowed (not just on content).

#3. Comments have types

In Drupal 8, you can have more than one type of comment.

For example, if you run a social networking site, you might want to allow admins to leave private notes on users:

As I mentioned above, Drupal 8 allows you add comments to more than just nodes. You can add comments to blocks, contact messages, content, taxonomy terms, users and even comments. Yes, you can add comments to comments.

However, without the user of contributed module, there may be a limit to far you can take the example I've just shown. This is because Drupal 8's comment types don't have individual permissions. Anyone with persmission to post on type of comment will have access to post all types. Again, you can expect a contributed module or Drupal 8 update to fix this.

#4. Comments have fields

Not only are comments now fields in Drupal 8 (see change #2 above), but you can also add fields to comments:

#5. Recent comments is in Views

As with many things in Drupal 8, the Recent comments block has moved to Views. In Drupal 7, the Recent comments block couldn't be edited.

In Drupal 8, Recent comments is available by default:


About the author

Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. He was a teacher for many years before starting OSTraining. Steve wrote the best-selling Drupal and Joomla books.


Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web