B
Bonzai 2
Web Parts

Important Messages

Display announcements and alerts with targeting, dismissable options, and date-based activation.

CommunicationFeature Parity: 95%

Get Important Messages Working in 3 Steps

15-30 minutes

Prerequisites

  • Bonzai 2 package installed on your site
  • Important Messages SharePoint list created (see schema below)
1

Create the Important Messages list

Create a SharePoint list with the required columns: Title, Body, Category, StartDate, EndDate.

2

Add the web part to your page

Edit the page, click +, search for "Important Messages", and add it to a section.

3

Select your list and configure

Open the property pane, select your list from the dropdown, configure options, and publish.

When to Use This Web Part

Use this when you need to...

  • Announce system maintenance or outages
  • Share company-wide important updates
  • Display emergency notifications
  • Communicate policy changes or deadlines
  • Target specific messages to departments or locations

Best page locations

  • Homepage — at the top for maximum visibility
  • Department pages — for team-specific announcements
  • Landing pages — for contextual alerts
  • Any page header — first thing users see

Consider alternatives when...

  • Long-form news articles — use News Rollup instead
  • Permanent content — messages should be time-limited
  • Interactive content — this is read-only

Related web parts:

News Rollupdetailed news articles with imagesContent Cardsstatic informational tiles

Message Categories

Important Messages supports four visual styles based on the Category field:

InfoGeneral announcements and updates
WarningImportant notices requiring attention
ErrorUrgent alerts and emergencies
SuccessPositive updates and confirmations

Styling and Theme

  • Message background uses the site accent color for a banner-style appearance.
  • Foreground text automatically switches between dark/light for contrast.
  • Icons are based on the selected Category (Info, Warning, Error, Success).
  • Dismiss action remains visible and styled to match the banner.

Step-by-Step Configuration

1

Create the Important Messages SharePoint list

Go to Site Contents → New → List. Name it "Important Messages". Add the columns from the schema below.

Use the list template script if available in your Bonzai deployment package.

2

Add your first message to the list

Open the list, click "New", fill in the Title, Body (rich text), Category, StartDate, and EndDate fields.
3

Edit the page and add the web part

Navigate to your target page, click Edit, click the + button in a section, and search for "Important Messages".
4

Select your list in the property pane

Click the pencil icon on the web part, then select your list from the List dropdown picker.
5

Configure display options

Set the title (optional), adjust "Max Messages to Show" slider (1-10), and optionally set a fixed height.
6

Enable content targeting (optional)

Toggle on Content Targeting and set TargetAudience values to SharePoint group names.
7

Publish and test

Save and publish the page. Verify messages appear with correct styling based on Category.

Common Configurations

Copy these ready-to-use configurations:

Homepage Alert Banner

Critical alerts at the top of the homepage

Best for: Homepage, full-width above content
Configuration
TitleAnnouncements
Max Messages to Show3
Content TargetingOff
Fixed Height0 (auto)

Department Notices

Targeted messages for specific teams

Best for: Department landing pages
Configuration
TitleHR Updates
Content TargetingEnabled
Target AudienceHR Team (SharePoint group)
Max Messages to Show5

Emergency Broadcast

High-visibility error alerts

Best for: Site-wide emergency communication
Configuration
Title⚠️ Alert
CategoryError
Max Messages to Show1
Fixed Height150

Regional Updates

Location-specific announcements

Best for: Regional office pages
Configuration
TitleLocal News
Content TargetingEnabled
Max Messages to Show5
Site URL(current site)

Best Practices

Use date ranges for automatic activation

Set StartDate and EndDate on all messages so they automatically appear and disappear. This eliminates the need to manually manage active messages.

Reserve Error category for true emergencies

Using the Error category too often trains users to ignore it. Save red styling for genuine urgent situations only.

Blank titles hide the header row

If you leave the Title field blank, the header row (title + icon) is hidden for a cleaner banner.

Use targeting or separate lists for contexts

Use TargetAudience values (SharePoint group names) for audience-specific messages, or create separate lists per department when you need completely different message sets.

Always set end dates

Messages without EndDate may display indefinitely. Set realistic end dates to keep content fresh and relevant.

AllowDismissal is a list field

The ability to dismiss individual messages is controlled per-message via the AllowDismissalfield in the SharePoint list, not a web part property. Set this to "No" for critical messages that should always be visible.

Troubleshooting

Still need help? Contact Bonzai Support


Reference

Technical details for developers and advanced users.

Property Pane Configuration

PropertyTypeRequiredDescription
titleTextNoWeb part title displayed above messages (default: "Important Messages")
siteUrlTextNoSite URL for cross-site queries. Leave empty for current site.
listIdList PickerYesSharePoint list containing messages (list ID is used so renames do not break)
enableContentTargetingToggleNoFilter messages by SharePoint group membership (TargetAudience field)
maxMessagesToShowSlider (1-10)NoMaximum messages to display at once (default: 1)
fixedHeightSlider (0-1000)NoFixed height in pixels. 0 = auto height based on content.

Required SharePoint List Schema

Create a SharePoint list with these columns:

ColumnInternal NameTypeRequiredDescription
TitleTitleSingle line of textYesMessage title
BodyBodyMultiple lines (Rich text)YesMessage content (HTML)
CategoryCategoryChoiceYesValues: Info, Warning, Error, Success
Start DateStartDateDate and TimeYesWhen message becomes active
End DateEndDateDate and TimeYesWhen message expires
Message Active?MessageActiveYes/NoNoToggle to manually enable/disable message
Allow Dismissal?AllowDismissalYes/NoNoCan users dismiss this message? (default: Yes)
Target AudienceTargetAudienceSingle line of textNoUser group name for content targeting

Features Checklist

  • ✅ Four message categories with distinct styling (Info, Warning, Error, Success)
  • ✅ Date-based activation (StartDate/EndDate)
  • ✅ Per-message dismissal control (AllowDismissal field)
  • ✅ Dismissal state stored in user profile property with session fallback
  • ✅ Content targeting by user groups (TargetAudience field)
  • ✅ Dynamic list picker in property pane
  • ✅ Configurable max messages (1-10)
  • ✅ Fixed height option for consistent layouts
  • ✅ Theme Manager integration
  • ✅ Responsive design
  • ✅ Cross-site data source support (siteUrl property)

Migration from Classic

AspectClassicModern
TechnologyXmlWebPart + bonzai.min.jsSPFx + React
Message ColorsBrick Theme EditorCSS Custom Properties via Theme Manager
Dismissal StorageProperty bagsUser Profile Service property with session fallback
Date FilteringCAML queriesREST API + client-side date comparison
List SelectionManual list name entryVisual List Picker dropdown
View SelectionManual view name entryNot available (view filtering not implemented)