Problem/Motivation
Found in #2726497-32: Deprecate text_with_summary.
Umami uses the 'text_with_summary' field, however none of the default content has a summary, and none of the listing views display the body field in summary/trimmed mode - they use cards with images and titles.
However if you create new content on an Umami site, you'll get the confusing UX of the teaser splitter allowing you to enter a summary that never shows up anywhere.
Steps to reproduce
Proposed resolution
Add a 'field_body' field using regular long text, update any theming, display modes, and default content etc. necessary to use that instead.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3425105
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:
- 3425105-dont-use-textwithsummary
changes, plain diff MR !6868
Comments
Comment #2
catchComment #5
smustgrave commentedNot sure where the schema error is coming from.
Comment #6
smustgrave commentedThink I found the issue. Had to use a new field name vs just "body"
Comment #7
smustgrave commentedActually had to change a lot. This the route we will have to go other places since the "body" field is hardset to be text_with_summary.
Comment #8
markconroy commentedI think this looks like a great idea, but now I also have a worry about us having a field called
bodyand a field calledfield_bodyif someone tries to add a new field to a content type and uses the "reuse existing field" approach. Also if you create a new content type it will automatically get thebodyfield added.I guess people don't need to be creating new fields and content types, since this is a fully formed demo.
I wonder could we disable the default
bodyfield from the UI fully?Comment #9
catch@markconroy there's a bit of a chicken and egg situation between this issue and other child issues of #2726497: Deprecate text_with_summary.
If we eventually remove the hard-coding of the 'body' field and make it uninstallable, then Umami would just be able to ignore it entirely.
If we want to keep the hard-coding of the 'body' field, then it might make sense to switch it to a standard text field for new installs, in which case this MR might not need to change anything.
Comment #10
smustgrave commentedOpened a META to track decisions #3427095: [Meta] Deprecate text_with_summary
I'm postponing this till we decide what to do with the body field.
Comment #11
smustgrave commentedRebased and this is ready for review again.
Comment #12
markconroy commentedTested againsta 11.x.
LGTM.
===
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #13
catchHad another look through this. I think the confusion between body vs. field_body is something a lot of real sites already have, and going to be less confusing than having the text summary widget which then never gets used. If we change how the body field works, we could eventually rename this again back to 'body' if we want to, or just leave it as is without the dormant body field.
Committed/pushed to 11.x, thanks!
Comment #16
catch