B
Bonzai 2
Web Parts

Locations

Display office locations with addresses, contact info, images, and directions links.

PeopleFeature Parity: 95%

Get Locations Working in 3 Steps

15-30 minutes

Prerequisites

  • Bonzai 2 package installed on your site
  • SharePoint list with location data
1

Create a locations list

Create a SharePoint list with Title, Address, Phone, Email, Hours, Image, and MapImage columns.

2

Add the web part

Edit your page and add "Bonzai Locations" from the Bonzai category.

3

Select your list and configure

Choose your Locations list, configure field visibility, display layout (Cards/List), and publish.

When to Use This Web Part

Use this when you need to...

  • Display office locations
  • Show branch contact information
  • Create an office directory
  • Feature regional offices with maps and directions

Best page locations

  • About Us page — office listings
  • Contact page — office contacts
  • People & Directory page — locations section
  • Global offices page — international locations

Consider alternatives when...

  • Interactive maps — use embedded maps
  • People contacts — use People Listing

Common Configurations

Office Directory

Full office listings with all details

Best for: Contact page
Configuration
titleOur Offices
displayAsCards
itemsPerPage9
showSearchOn
showAddressOn
showPhoneOn
showEmailOn
showDirectionsOn

Regional Offices List

Compact list view of locations

Best for: Sidebar widget
Configuration
titleLocations
displayAsList
showImageOff
showMapImageOff
showHoursOff
itemsPerPage6

Searchable Office Finder

Focus on search with expanded field

Best for: Dedicated locations page
Configuration
titleFind an Office
showSearchOn
expandSearchFieldOn
searchPlaceholderSearch by city or country...
showResultsOnLoadOff

Visual Office Grid

Image-focused card layout

Best for: Homepage
Configuration
titleGlobal Offices
displayAsCards
showImageOn
showMapImageOn
itemsPerPage6
showPagingOff

Best Practices

Add location images

Office photos make the locations more recognizable and visually appealing.

Include map images

Static map images help users quickly orient themselves. Use Google Maps or Bing Maps static image URLs.

Enable directions links

The "Get Directions" link opens the address in Google Maps for easy navigation.

Troubleshooting

Still need help? Contact Bonzai Support


Reference

Locations List Schema

Create a SharePoint list with these columns:

  1. Create a list to store locations (any name).
  2. Add required Title column entries for each location.
  3. Add optional columns for address, contact, and map details.
ColumnTypeRequiredDescription
TitleSingle line of textYesOffice/location name
AddressMultiple lines of textNoFull street address
CitySingle line of textNoUsed for search and display
StateSingle line of textNoUsed for search and display
PostalCodeSingle line of textNoPostal/ZIP code
CountrySingle line of textNoUsed for search and display
PhoneSingle line of textNoContact phone number
EmailSingle line of textNoContact email address
HoursSingle line of textNoOperating hours
ImageImage or HyperlinkNoOffice photo URL
MapImageUrlImage or HyperlinkNoStatic map image URL (MapImage also supported)
LatitudeNumberNoOptional coordinate for directions
LongitudeNumberNoOptional coordinate for directions

Property Pane Configuration

Title Settings

PropertyTypeDescription
titleTextWeb part title
titleUrlTextOptional URL to make the title clickable
titleIconOptionDropdownTitle icon mode: Custom or None
titleIconNameIcon PickerFluent UI icon picker (default: MapPin)
titleIconUrlTextCustom icon URL (overrides icon name)
descriptionText (Multiline)Optional description below the title
showMoreTextTextText for footer link
showMoreUrlTextURL for footer link
chromeTypeDropdownChrome type: None, Title Only, Border Only, Title and Border

Data Source

PropertyTypeDescription
siteUrlTextSite URL where list is located (empty = current site)
listNameList PickerSharePoint list containing locations
viewNameView PickerView to filter locations

Search Options

PropertyTypeDescription
showSearchToggleEnable search functionality (default: On)
searchPlaceholderTextPlaceholder text for search box
showResultsOnLoadToggleShow all results initially (default: On)
expandSearchFieldToggleExpand search field on focus (default: Off)

Field Visibility

PropertyTypeDescription
showAddressToggleShow address (default: On)
showPhoneToggleShow phone number (default: On)
showEmailToggleShow email address (default: On)
showHoursToggleShow operating hours (default: Off)
showImageToggleShow office image (default: On)
showMapImageToggleShow map image (default: On)
showDirectionsToggleShow "Get Directions" link (default: On)

Display Options

PropertyTypeDescription
displayAsDropdownCards or List
itemsPerPageSlider (3-24)Locations per page (step: 3, default: 9)
showPagingToggleEnable pagination (default: On)
fixedHeightSlider (0-800)Fixed height in pixels (0 = auto)

Features Checklist

  • ✅ Cards and List display layouts
  • ✅ Search functionality
  • ✅ Office images and map images
  • ✅ Contact information (phone, email)
  • ✅ Operating hours
  • ✅ "Get Directions" link (Google Maps)
  • ✅ Pagination
  • ✅ View-based filtering