Notifications (Alerts)#
About#
Drupal has two types of notices: Site Wide and Contextual. The major difference is where the alert is displayed. Site wide alerts are displayed in the header on every public page. Contextual alerts are displayed only on pages that meet certain conditions. The conditions are set in the Notification Conditions section when you create a contextual alert.
Drupal also has extended closure notices on each location page. Type a message to replace the branch hours with a notice. These are not created using notification messages but look similar, which is why we've made a note here.
Showing/Hiding the “Read More” Button#
Desired Result | “Message” Field | “Read More URL” Field |
---|---|---|
No “Read More” Button | Add content to the “Message” field. | Leave “Read More URL” field blank. |
Read More Button --> Notification Page | Add content to the “Message” field. | Leave “Read More URL” field blank. |
Read More Button --> Drupal page or External page | Leave “Message” field blank. | Add a URL to the “Read More URL” field. Can be a relative path. |
Add a Site Alert (Yellow Bar at Top of Website)#
A site alert is shown site-wide in the yellow bar at the top of the website.
- Go to Content > Notification Message.
- Select Add Notification Message.
- Select Site Alert.
- Fill out the form:
- Label: Displays in the admin UI and as the page title in the browser tab. Does not display to the user on the actual webpage.
- Headline: Displays as the alert text in the yellow bar at the top of every page on the site.
- Read More URL (optional):
- If the alert points to a specific blog post or website, put that link here. You must include the full URL, not a relative path.
- If the Read More URL is left blank, the user will be taken to the notification page and will see content added to the Message field.
- Message (optional): Displayed to the user only if they click the “read more” link.
- More Info on Notification Page: Add the notification content to the message field. You must leave the “Read More URL” blank for the user to go to the notification page.
- More Info on External or Other Drupal Page: Add the “Headline” text to the message field. Put a full URL in the “Read More URL” field
- No Read More Link: Leave the “Message” field is left empty. Do not add a “Read More URL” link. The alert will show only the headline.
- Notification Conditions: Ignore for site wide alerts.
- Notification Options: Schedule your alert (message publish) or change authoring information (message information).
- Message Publish: Select the start and end date for your alert.
- Message Information: Do not change unless absolutely necessary.
- Select time period the notification will be active.
- Save.
Add a Contextual Alert to a Specific Page or Content Type or Language#
A contextual alert is shown on individual pages or types of content. For example, you can post a contextual alert to a single database page (if ABC-CLIO is broken) or an alert to one or more branch pages (if we’re paving driveways and want to alert visitors). You can even show an alert only on Spanish page or Arabic pages.
- Go to Content > Notification Message.
- Select Add Notification Message.
- Select Site Alert.
- Fill out the form:
- Label: Displays in the admin UI and as the page title in the browser tab. Does not display to the user on the actual webpage.
- Headline: Displays as the alert text in the yellow bar above the content on a specific page. The example below is on the ABC-CLIO database page.
- Read More URL (optional): Displayed to the user only if they click the “read more” link.
- If the alert points to a specific blog post or website, put that link here. You must include the full URL, not a relative path.
- If the Read More URL is left blank, the user will be taken to the notification page and will see content added to the Message field.
- Message (optional): Displayed to the user only if they click the “read more” link.
- More Info on Notification Page: Add the notification content to the message field. You must leave the “Read More URL” blank for the user to go to the notification page.
- More Info on External or Other Drupal Page: Add the “Headline” text to the message field. Put a full URL in the “Read More URL” field
- No Read More Link: Leave the “Message” field is left empty. Do not add a “Read More URL” link. The alert will show only the headline.
- Notification Conditions: Set the context for your alert. You can combine conditions, for example using request path and language conditions.
- NPL Branch: Displays an alert on one or more location pages. Select the NPL Branch tab, then check the box next to the branch(es) that should display the alert.
- Current Theme: Ignore.
- Request Path: Displays an alert on one or more pages based on URL. For example, you could post an alert on the ABC-CLIO database only (rather than all databases) by putting the ABC-CLIO URL in the “pages” field.
- Content Type: Displays an alert on all pieces of a specific type of content, like all databases or all internship opportunity posts. Select the Content Type tab, then check the box for the specific type of content you want to target.
- Language: If the notice should display only on a specific translation of the site (only on a Spanish page or on Spanish and Arabic pages, but not English), choose the languages where the notice should display.
- Notification Options: Schedule your alert (message publish) or change authoring information (message information).
- Message Publish: Select the start and end date for your alert.
- Message Information: Do not change unless absolutely necessary.
- Select time period the notification will be active.
- Save.
Edit Existing Notifications#
- Log in to the web site at https://library.nashville.org/user with your username and password.
- Go to Content > Notification Message
- You should see a list of notifications. Select Edit next to the notification. Or use the dropdown arrow to delete an alert.
- Make your changes and save. Your alert will only be visible to users if you update the publish start and end dates.
- Save your changes.
Add Extended Closure Notice#
See Closure Notice info on Locations page for step-by-step.
Add Alert to Catalog#
Catalog (NPL or School)#
- Log in to the catalog: https://catalog.library.nashville.org
- Click on “hamburger menu” to the right of your account name. Select Aspen Administration.
- In the LOCAL CATALOG ENRICHMENT section, select System Messages.
- Select Add New or edit an existing message.
- Add New > Click Add New button:
- Title: Type the title of the alert that is visible in the admin view.
- Message to Show: Type the message visible to patrons.
- Show On: Select the places to show the message.
- Message Style: Select warning (yellow).
- Start Date to Show: Select the date the message will publish.
- End Date to Show: Select the date the message will unpublish.
- Dismissible: Check the box if you’d like the alert to be dismissable.
- Libraries: Select MNPS for school catalog. Select NPL for library catalog. Select both boxes if the message is the same for both systems.
- Locations: For Aspen System Messages to show up on in-branch OPAC screens (and public internet terminals browsing to catalog.library.nashville.org), the branch must be selected in the Locations list for the system message. I.e., it's probably best that, when posting a message to Aspen, you select All Libraries and All Locations.
- Edit Existing > Click edit button.
- Add New > Click Add New button:
- Scroll to the bottom of the page, click ‘Save Changes and Return.’
- Go to catalog.library.nashville.org or school.library.nashville.org and verify changes are visible and correct.