
Problem/Motivation
The page title for comment type edit form is just "Edit". This is pretty confusing because it doesn't contextualize the local tasks, but also leads into incorrect breadcrumbs on the subpages as reported in #2587415: Comment types UI confusing and inconsistent.
Proposed resolution
Change the page title to the current comment type.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#14 | 3374626.png | 21.97 KB | penyaskito |
#13 | interdiff.txt | 1.35 KB | lauriii |
#13 | 3374626-13.patch | 2.66 KB | lauriii |
#9 | interdiff.txt | 1.58 KB | lauriii |
#9 | 3374626-9.patch | 3.65 KB | lauriii |
Issue fork drupal-3374626
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3374626-dhiren
changes, plain diff MR !4404
- 3374626-comment-type-form
changes, plain diff MR !4388
Comments
Comment #2
lauriiiComment #3
smustgrave CreditAttribution: smustgrave at Mobomo commentedAgree the title could be updated.
I checked content types and media types
Content types = Edit Article content type
Media type = Edit Audio
So can we use Edit [comment-type-name] or Edit [comment-type-name] comment type
Comment #7
lauriiiWe might be adjusting or getting rid of some of these title overrides in #3370946: Page title should contextualize the local navigation but agree that it makes sense to be consistent here. 👍
Comment #9
lauriiiCouple small improvements after a self-review. 😇
Comment #10
smustgrave CreditAttribution: smustgrave at Mobomo commentedTitle change looks good.
Edit Default comments comment type
Comment #11
longwaveI think this can use
\Drupal\Core\Entity\Controller\EntityController::title
then we don't need a custom controller or method.Comment #12
longwaveComment #13
lauriiiMakes sense 👍
Comment #14
penyaskitoLGTM. Surprised this wasn't reported until 2023.
Static review looks good. Actually tested the patch, attached screenshot.
Comment #15
dhirendra.mishra CreditAttribution: dhirendra.mishra at Axelerant for Axelerant commentedComment #17
dhirendra.mishra CreditAttribution: dhirendra.mishra at Axelerant for Axelerant commentedPlease ignore #16 , Created by mistake
Comment #19
longwaveCommitted and pushed 95dcdb3f58 to 11.x. Thanks!
Discussed with @lauriii at Drupal Dev Days and decided not to commit to 10.1.x as there is a new translatable string, it's a UI bug that has existed for a long time and it can wait for 10.2.x.