Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 20.55 KB
MD5: d9a5600a6320a052e6446912e712d3e8
SHA-1: 42596d86da79f131f6554aebbfae73a722cfb536
SHA-256: a84662ffa926cf409231c3aa6328c7337c9adba4dc9082af4cffcc8ec3e96476
Download zip 37.19 KB
MD5: d5f779485958761f3d5092fde8a06051
SHA-1: b4bdc31bd740ce3964132c7b12a382caeb0691ae
SHA-256: 9ba960731c8f377fd04ded4ca65e680c9f6ede360723093ce344b732624196b7

Release notes

This is a beta release of the 3.x rewrite. The feature set is frozen. Please test and report issues. It is not a stable 3.0.0 and is not covered by the security advisory policy.

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.

Please report issues at https://www.drupal.org/project/issues/comment_on_top

Created by: drale01
Created on: 10 Sep 2026 at 11:39 UTC
Last updated: 10 Sep 2026 at 11:39 UTC
New features

Other releases