Make manual teaser break (<!--break-->) a configuration property

Created on 23 December 2018, about 6 years ago
Updated 14 May 2023, over 1 year ago

Problem/Motivation

The text.module allows - through its text_summary() function - content editors to manually define the portion of the text to be used as a summary.
The summary begins at the beginning of the text and
they can insert a marker (in the form of an HTML comment) at the place where the summary should end.
Traditionally, the marker used for that is <!---break-->.

That marker should be a configuration property for two reasons:

  1. So that other parts of the system can request information about what the marker expected by text_summary() is; at the moment this information is hard-coded in a couple of places
  2. So that the system can be configured to use other markers, in case <!--break--> needs to be avoided for whatever reason

Proposed resolution

Add a new configuration property to text.module that defines the summary marker.

Remaining tasks

Update text_summary() and text.settings.yml with the new configuration property.
Add an .install file to the text.module's code base with an update hook for adding the configuration property to existing systems.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
TextΒ  β†’

Last updated 17 days ago

Created by

πŸ‡¨πŸ‡­Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024