Similarly to what happened to "title" in https://www.drupal.org/project/readonly_field_widget/issues/2935718, "created" field has its label missing when setting it as "readonly". The cause is the same as with "title": Drupal core has template overrides for this specific field which exclude the field label.
Adding a patch that adds the same solution from to "title" to "created" field.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screenshot After.png | 52.98 KB | rinku jacob 13 |
| #3 | Screenshot Before.png | 47.21 KB | rinku jacob 13 |
| created_field_label_missing.patch | 589 bytes | albertosilva |
Issue fork readonly_field_widget-3336127
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:
Comments
Comment #2
albertosilvaJust to clarify it, "created" field is also named as "Authored on" in some installations.
Comment #3
rinku jacob 13 commentedHi @albertosilva , Applied the patch for drupal version 10.1.0-dev.After the patch i could able to see label on Authored on field. Adding screenshots for the reference.
Note: I didn't see any changes on title field.
Comment #5
astonvictor commentedComment #8
astonvictor commented