The Emergency banner is piece of content called a Block. In Drupal, this means it exists on all pages by default, like the header, navigation, and footer. However, it can be restricted to certain pages, content types, or URL patterns.
This article will detail how to create a new banner, and update an existing banner.
Create a new Emergency Banner
- Navigate to the Block Layout:
Structure > Block Layout -
Find the Emergency Banner region and click "Place Block" button:
- Choose Add custom block:
- Choose Folwell Component:
- Add a description, then choose Banner from the Folwell Component options
- Add your message and link, if applicable
- Choose the Banner Type.
The "Emergency" type will produce a banner with a red background and "emergency" icon.
The "Maroon" and "Gold" options turn the banner background those colors, with no icon. For examples, see this site: https://ur-clone.dev.umn.edu/paragraph-test - Save when you're done editing.
Block configuration options
With the content created, now you there are options for where to display the block.
- Uncheck the "Display title" option, then choose the "Emergency Banner" in the Region drop-down options menu:
- If you want the block visible on every page, save the block.
Block visibility options
By default, the block will be visible on all pages, similar to the site identity, footer, and navigation.
However, there are options to limit the display to specific pages, microsites, or paths.
To limit the visibility to a microsite, choose one from the "Block Visibility Groups" drop-down.
To use path logic, choose the Pages tab, and enter the path URL where the block should be visible (or choose to hide on the specific path):
Edit existing Emergency Banner
To edit an existing Banner, go to:
Structure > Block Layout > Custom Block Library
All the custom blocks on the site will be listed there. Choose edit on the block you'd like to edit.
Once saved, the updates should be visible to all users immediately.
Disable, remove, or delete Emergency Banner
Navigate back to the Block Layout page:
Structure > Block Layout
In the Operations drop-down you have the option to Configure, Disable, or Remove.
Configure allows you to edit the name, region, and visibility.
Disable turns the block off, but leaves it on the layout page, but grayed-out. Users will not see it on the site, but it's there should you want to enable it again later.
Remove turns the block off and removes it from the layout page. The content is still available in the Custom Block Library should you want to add it again.