- last update
about 1 year ago 180 pass - last update
about 1 year ago 180 pass
We thought it would be useful to allow config in the UI for the paragraphs summary field formatter to make use of the Unicode::truncate options:
public static Unicode::truncate($string, $max_length, $wordsafe = FALSE, $add_ellipsis = FALSE, $min_wordsafe_length = 1)
Especially to allow users to select a max length (character count). This is currently hard coded at 150 chars.
Another thought, not included in this patch, would be to include a select list of available paragraph types from which the user can choose what to exclude from the summary. Alternatively, we could provide our own view mode to use when rendering summaries?
Needs work
1.0
Code
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.