Site-wide and State-wide Alerts
Overview
The Alerts feature provides both a state-wide alerting system, as well as an opt-in site-wide alerting system, producing one or both on a website at the top of the page.
Requirements
- Browser must meet the statewide minimum requirements
- Access to statewide-links.js on CDN
- List titled Site Wide Alert
- Site-wide alert feature must be enabled, manually
- Starter Template v4.5+
Accessibility
This web part passes both WCAG 2.0 and Section 508 website standards. Alert has the proper role of alert and aria-live role of polite. Links are well-formed. Colors pass contrast ratio requirements.
Features and Functionality
- Additive approach based on alert message existence
- Statewide alert is sticky, along with top nav bar
- Alert can be suppressed for 24 hours by way of a close button
Tutorials
As it is seldom used, to increase performance on all pages, the Site Wide Alert is a site collection opt-in feature.
Enable the site-wide alert feature for a site collection
- Locate the agency.js file in the Style Library at the root of the site
View All Site Content > Style Library > JS > agency.js - Check out the file
- Use the ribbon command to download a copy of the file
- Open the file in Notepad or a simple text editor. Do not edit this file in a word processor as it can add illegal characters.
- Add the following to the file on a new line
oregon.agencyWideAlert.enabled = true; - Save the file as agency.js
- Upload the file to the Style Library You may be prompted to replace the existing file or not. Choose Yes
- Check in and Publish the agency.js file
Add an alert to the site
Locate the Site Wide Alert list at the root of your site. Add a new item, filling out the Title, Alert, and choosing Yes from the dropdown in the Display column.
Known Limitations
None.
Frameworks/Libraries Dependencies
Feedback
If you would like to suggest features, enhancements, or report a bug, please visit https://egovservicedesk.zendesk.com and open a new ticket.
Comments
0 comments
Article is closed for comments.