Project discontinued due to changed opinions and low usage. Its our opinion this code should belong in custom module/theme code instead. Thusly, this project is NOT looking for new maintainers. Consider copying the relevant code from the .module file.

Provides anonymous user info on comments.

When a comment is authored by a user, the users 'compact' view mode will be rendered. By default this view mode includes the user picture/avatar. For comments posted anonymously, there is no built-incapability to show info related to the account, because these anonymous accounts are not user entities. This module provides a way to show user info for anonymous users. You have the option of using a comment display mode in combination with a Twig template.

Why?

This module is useful if you are collecting or storing additional information from anonymous users as fields on comments.

An alternative to this approach is to override the comment.html.twig file and generate anonymous-user specific code in place of the user picture.

Installation

See the README for installation instructions.

Dependencies

  • PHP 7.1
  • Drupal 8.4

Icon: "comments" by Saeful Muslim from the Noun Project

Supporting organizations: 
Sponsored time

Project information

Releases