Updated: Comment #0
Problem/Motivation
If you enable comment module from a minimal profile you don't automatically get the ability to comment on node types as it is not obvious that you need to add a field and you can't do this through the UI without enabling field UI module.
The menu item "Comment types" is used less recently then "Content types" but goes before and leads to errors (users frequently use a wrong link) and waste of time and attention.

Proposed resolution
Rename the menu item to "Commenting"
Add dependency in Comment to Field (field is required but being explicit is important).
Add a configure link to comment.info.yml pointing to admin/structure/comment
When no fields exist, make admin/structure/comment display help text along the lines of 'You have not placed a comment field on any entity types. In order to comment on another entity, you must add a comment-field to that entity.'
If field UI module is disabled append:
'To do so from the Drupal interface, you need to enable the Field UI module.'
Then if config module is enabled we can append 'Alternatively you can .'

Steps to reproduce
- Install minimal.
- Enable comment.
- Create a content type.
- Create a node.
- Try to comment. DOH!
Remaining tasks
- Needs review.
- Needs tests?
User interface changes
None.
API changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | commenting_menu.png | 32.1 KB | andypost |
| #7 | commenting.png | 23.5 KB | andypost |
| #7 | 2230177-commenting-7.patch | 8.2 KB | andypost |
| #1 | 2230177-1.patch | 344 bytes | penyaskito |
Comments
Comment #1
penyaskitoAdded dependency. However, as field_ui is not installed, it won't be obvious for a user to know how to add comments.
I guess most of unexperienced people install with standard profile, so not sure if any other action should be taken.
Comment #2
tim.plunkettI don't see how this is a bug, field.module is required.
Comment #3
larowlanComment #4
larowlanComment #5
andypostThe proper dependency makes sense in context of #2199637: Replace "required" flag of Field module with proper dependencies
The help text on "configure" route should explain the need in field_ui module
Comment #6
andypostNow we have comment type that works without "field" module...
In #1805932: Resolve menu UI issues on 'Comment fields' tab of bundle field ui pages exposed idea to use "tabs" and we actually lacks consistency to enable commenting on entities.
At the same time all the need is to provide a page that lists content entities (with integer IDs ;) and their bundles as checkboxes to "enable commenting"...
The related issues #552604: Adding new fields leads to a confusing "Field settings" form & #1963340: Change field UI so that adding a field is a separate task
There's
CommentManagerInterface::addDefaultField()to add default field.The tricky part is "disable commenting" that could be released by re-using "locked and enabled" field properties. just do not delete the fields.
Also some contextual links (probably) with modal dialogs could be used to edit and delete comment
PS: the interesting part - are we able to use comment field as base entity field...
Comment #7
andypostInitial stub for #6

Comment #9
larowlanNice!
Yes, its so we can make the entity_id field on comment an ER field (you need to set the entity-type of the ER field, and this can only vary by bundle)
There should be a confirm form here, along with a list of dependencies etc. As this will result in data loss.
Comment #10
Bojhan commentedI have no idea why this is doing this? We really shouldn't be creating UX hacks like this
Comment #11
andypost@larowlan what do you mean with confirm form and dependencies?
@Bojhan I think 80% of users need just a simple interface to enable commenting
Comment #12
Bojhan commented@andypost Yes, but this sounds very much like an anti-pattern. We don't have this for any of the other entities, and its basically a work around to the Field UI having such bad UX. I don't see how this helps users understand the concepts at play.
I am tempted to mark this won't fix, but it might be good if a committer chimes in. I'd rather have some help text here, than some funky custom UI.
Comment #13
andypostHelp texts should be added/fixed anyway in the issue, so no need to wontfix
Comment #14
andypostDiscussed with @catch at IRC, the suggestion to improve help texts
Comment #15
ianthomas_ukIs the revisit before release tag appropriate on this issue? The tag is generally used for issues that can't be fixed immediately but where a fix might be possible at a later date, or where a quick hack has been implemented with the intention of removing it before release.
I don't think there are any external factors preventing this from just being fixed.
Comment #16
andypostAlso it's really confusing to have "comment types" in Structure menu - it always takes a time to separate them from "content types" visually and sometimes leads to extra clicks because comments goes before content
Comment #17
andypostadded screens to summary and #16
Comment #18
andypostWould be great to discus around DC
Comment #19
xjmComment #20
xjmWe discussed this with @webchick, @alexpott, @catch, and @effulgentsia -- we should definitely improve the hook help entry that exists and also add text in
hook_help()to be shown on this page, but it's a straightforward UX/documentation bug so no need to "revisit" it.Comment #21
andypost@xjm suppose better to re-open #2091299: Update hook_help for Comment module and move the issue to 8.1 cos it's focused on Usability of comment management
Otoh we have no such interface in d7 so it's not a regresion like #1997692: Create contact form block
So maybe discus such sort of issues as RC-polishing stage?
Comment #22
jhodgdonPlease open a new issue to improve the help, rather than reopening a fixed issue at this point. We do not normally want to reopen old issues that were fixed 11 months ago, to address newly discovered problems. We should open a new issue instead.
All hook_help issues should be listed with parent issue #1908570: [meta] Update or create hook_help() texts for D8 core modules please, or at least make sure that is listed as "related".
Comment #31
catchThe extra help text was added in #2488078: Update hook_help for Comment module about field UI need to manage comment fields. Marking this as duplicate.