Problem/Motivation
Individual Site Alerts lack a dedicated "headline" field. While the module makes available a WYSIWYG field for the alert message and a headline can be created within that, it can be useful to have a dedicated "headline" field for alerts, particularly if site administrators wanted to restrict text formats available to editors creating these alerts. The Label field could be made use of for this purpose.
Proposed resolution
This patch proposes adding the value of the Label to the Twig build array so that it's available as an optional token for use in the Twig template if desired.
Remaining tasks
None.
User interface changes
None.
API changes
alert.label is available as a Twig token for use in the alert template.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | alert_label_not_avail_to_twig-3054394.patch | 1.46 KB | iarla |
Comments
Comment #2
iarla commentedComment #3
iarla commentedComment #5
cecrs commentedLooks fine, committed to 1.x-dev. Thanks for the patch!