Alert

The Alert content type is used for displaying timely information in a banner across the site. Unlike most content types, you don’t use Alert to create pages. Instead, Alerts display as a rendered entity, as a section of content on other pages, either just below the header or above the footer.

Fields

NameMachine nameRequiredDescription
Titledrupal’s defaultYesTitle of the alert, which will display as the headline.
Background colorfield_alert_colorYesReference field for choosing a term from the “Color” vocabulary.
Text colorfield_alert_text_colorYesReference field for choosing a term from the “Color” vocabulary. For accessibility, stick to using either black or white.
Icon colorfield_alert_icon_colorNoReference field for choosing a term from the “Color” vocabulary. Leave empty to hide the icon.
Placementfield_alert_placeYesSelect list field (singular) for choosing placement:
  • Header
  • Footer
Descriptionfield_alert_descriptionYesTextarea for the main body of the alert with WYSIWYG (What You See Is What You Get) editor, without summary. Sentences should be short and minimally styled in this section.
Linkfield_alert_linkNoInternal or external link. Adds a button with a call to action to the alert on the right. The button color defaults to black.
Referencefield_alert_belongsNoEntity reference with autocomplete to any node. Reference to a node (branch, camp, landing page, etc.) where the alert will be displayed.

URL pattern

Content type uses the following pattern: /alert/[node:title].

Last modified March 11, 2025: feat: improve docs (3e852052)