Allow a sitebuilder to change the Comment form heading

Created on 5 August 2015, almost 9 years ago
Updated 13 January 2024, 5 months ago

Problem/Motivation

Follow-up to #2228763: Create a comment-type config entity and use that as comment bundles, require selection in field settings form β†’ . At the moment the comment form heading always says "Add new comment" on the form. If you have a specific comment type like "Greeting" you probably want it to say "Write greeting" instead.

Proposed resolution

This proposed resolution comes from the UX committee. See Comment 104 for details ✨ Allow a sitebuilder to change the Comment form heading Needs work .

Add a Form heading field on the Comment field settings form of an entity. eg: Structure > Content Types > Article Manage fields > Comments or /admin/structure/types/manage/article/fields/node.article.comment.

Include the help text, "This text will be displayed as the heading of the comment form, if the theme supports it."

Place the Form heading field after the Comment field's Help text

Proposed resolution mockup

Remaining tasks

  1. ❌ Get Comment Module maintainer ( larowlan β†’ , andypost β†’ ) approval of the proposed resolution.
  2. ❌ Implement proposed resolution
  3. ❌ Add hook_update_n() implementation to update all existing comment types
  4. ❌ Write test coverage for merge request
  5. ❌ Write change record.
  6. ❌ Commit to Drupal core
  7. ❌ Celebrate the ability to now change the comment form heading through the Drupal admin UI. πŸ₯³

User interface changes

New setting on the field.

API changes

Likely none. Config schema is expanded.

Data model changes

Config is expanded.

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
CommentΒ  β†’

Last updated 3 days ago

Created by

πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024