B
Bonzai 2
Web Parts

Page Banner

Full-width hero banner for News and Event pages. Automatically reads page metadata and renders the right layout based on the page’s content type.

CommunicationFeature Parity: 80%

Get Page Banner Working in 3 Steps

10-15 minutes

Prerequisites

  • Bonzai 2 package installed on your site
  • A modern page created from a supported page type (News Page or Event Page)
1

Use a supported page type

Create a News Page (recommended) or an Event Page in the Site Pages library. The banner only renders on supported page content types.

2

Add the web part (full-width recommended)

Edit the page and add “Bonzai Page Banner”. For best results, place it in a Full-width section.

3

Adjust layout + visibility

Use the property pane to control height, overlay darkness, and which metadata/actions display for the detected page type.

When to Use This Web Part

Use this when you need to...

  • Add a consistent, branded hero banner to News pages
  • Show event details (date/location) as a structured panel on Event pages
  • Enable quick engagement actions on News pages (likes/comments/share)

Best page locations

  • News pages — hero image + title + category/author + like/comment actions
  • Event pages — hero image + title + add-to-calendar + date/location panel

Consider alternatives when...

  • Standard site pages without a supported content type (the banner intentionally won’t render)
  • Page rollups (use News Rollup / Events Rollup instead)

Related web parts:

News RollupListing many news itemsEvents RollupListing many events

How it Works

  • Detects page type: Reads the current page’s content type and chooses the correct banner layout automatically.
  • Reads metadata from the page item: Uses dynamic field discovery to find common columns across different site setups (for example: image, category, author, and event date fields).
  • News banner actions: Like/unlike and comment count use SharePoint list item APIs. “Comment” scrolls to the comments section on the page.
  • Event banner actions: “Add to Calendar” supports Outlook/Office 365 (Graph), Google Calendar link, and an .ics download.

Spotlight pages

The Page Banner can detect “Spotlight Page” content types, but Spotlight rendering is currently a placeholder layout. News and Event pages are fully supported.

Graph permission required for Outlook add-to-calendar

Outlook / Office 365 calendar add requires admin approval of the package’s Microsoft Graph permission: Calendars.ReadWrite. If it’s not approved, Outlook add-to-calendar will fail, but Google Calendar and .ics download will still work.

Common Configurations

Copy these ready-to-use configurations:

News Hero (Recommended)

News layout with engagement actions

Best for: Modern news pages
Configuration
bannerHeight280
overlayOpacity70
showDateOn
showCategoryOn
showAuthorOn
showShareButtonOn

Event Hero + Details

Event layout with date/location panel

Best for: Event pages
Configuration
bannerHeight320
overlayOpacity65
showAddToCalendarOn
showDatePanelOn
showLocationOn

Minimal Banner

Title-first layout with less overlay

Best for: Clean, simple hero
Configuration
bannerHeight240
overlayOpacity45
showCategoryOff
showAuthorOff

Troubleshooting

Still need help? Contact Bonzai Support


Reference

Property Pane Configuration

Page Banner shows different property groups depending on what page type it detects (News/Spotlight vs Event).

Layout

PropertyTypeDescription
bannerHeightSliderBanner height in pixels (recommended 240–320).
overlayOpacitySliderDark overlay strength (0–100) to improve text readability on images.
defaultImageUrlTextFallback image URL when the page has no banner image set.

Visibility (News / Spotlight)

PropertyTypeDescription
showDateToggleShow the published date above the title.
showCategoryToggleShow the category label (if present on the page item).
showAuthorToggleShow “Posted By {author}”.
showShareButtonToggleShow the Share button.

Visibility (Event)

PropertyTypeDescription
showAddToCalendarToggleShow the “Add To Calendar” action.
showShareToggleShow the Share button (Event layout).
showDatePanelToggleShow the Date & Location panel below the banner.
showLocationToggleShow the location row (when a location value exists).
eventDateFormatDropdownControls how event date ranges are displayed (Full / Smart / Custom).

Colours

PropertyTypeDescription
dateColorTextOverrides the accent color used for the date + author link.
activeButtonColorTextNews layout: Like button active color.
buttonColorTextEvent layout: Action button color.
accentBorderColorTextEvent layout: Left accent border color for the Date & Location panel.