Make message configurable

Created on 31 March 2025, about 1 month ago

Problem/Motivation

A good novice issue as this touches a few different concepts of Drupal.

Currently the message shown is not configurable. To give more power to the end users of this module, it would be best to make this configurable through the config form. For now I don't see a need to make this configurable per bundle or type, so I would just opt for 1 general message.

Steps to reproduce

N/A

Proposed resolution

  • Add a new text area to the config form named "Reminder message" as a required field.
  • Use the current message as default/empty value.
  • Make sure that saving the form saves the value into config.
  • Update the config scheme with the new config element.
  • Ensure the controller loads the message from the config, default to our current T string if it's empty.

Extra challenge: Currently we are using a t string variable to replace %title with the node title. In theory it should be possible to support tokens in the text area giving even more flexibility to the site admins.

Remaining tasks

Create a MR with the changes.

User interface changes

Extra config item for administrators.

API changes

N/A

Data model changes

N/A

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024