Install
Works with Drupal: ^10 || ^11Using dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is a development release of the 3.x branch. It is not a stable 3.0.0 release.
3.x is a rewrite. Comments are pinned 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 to enable or disable comment types (new types are enabled by default).
- Optional Twig overrides, for example comment--pinned-on-top.html.twig.
- Comment on top by likes pins the most liked top-level comment (likes minus dislikes) via the Like/Dislike field. Enable comment types at /admin/config/content/comment-on-top/by-likes, or per node under Comment settings.
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.