Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the first stable release of the 3.x rewrite.
3.x pins comments in Drupal's default comment list. A Views block is no longer used, and the Comments field should stay enabled in Manage display.
Changes since 2.x:
- Compatible with Drupal 10 and 11.
- Stick on top / Remove from top on top-level comments only; replies stay with the parent.
- Settings at /admin/config/content/comment-on-top (new comment types are enabled by default).
- Optional Twig overrides, for example comment--pinned-on-top.html.twig.
- GitLab CI (phpcs, phpstan, kernel tests).
Comment on top by likes pins the most liked top-level comment (likes minus dislikes). Enable comment types at /admin/config/content/comment-on-top/by-likes, or per node under Comment settings. The Like/Dislike 2.4.x releases do not declare Drupal 11 support, so this submodule may not install on Drupal 11 until that project is updated.
On Drupal 11.4 Standard, create a content type, a comment type, and a Comments field before using this module.
Do not upgrade from 2.x without reading the README. Sites that used the Views block and a disabled Comments field need to restore the default comment display.
2.0.x remains supported for existing 2.x sites.