One HubDB table runs every listing and map pin

Organization

A real estate business (name withheld at client's request)

Industry

Real Estate

Services Used

Custom website build (HubSpot CMS, HubDB, Leaflet, dynamic pages)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

This is some text inside of a div block.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

This is some text inside of a div block.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

This is some text inside of a div block.

About

The client is a real estate business that needed its property listings managed inside HubSpot and shown on a map, so visitors can see where each property is without leaving the site. Mavlers Agency's HubSpot development team built it as a custom, white-label site, so the client's own brand is the only one visitors see.

Challenges

  • Listings had to be managed inside HubSpot and shown on a map, without visitors leaving the site.
  • The site had to carry only the client's brand, with nothing pointing back to the agency.
  • Listing data had to live in one place and feed both the listing pages and the map, so the two never drift apart.
  • The client did not want another map system to host, license and keep in sync with HubSpot.
  • Adding or editing a listing should not need a developer.
  • Off-the-shelf themes cover the layout, not the listing data model or the map.

Goals

  • Deliver a custom listings site on HubSpot CMS under the client's own brand.
  • Keep all listings in one HubDB table, one row per property.
  • Generate every listing page and every map marker from that same table.
  • Run the map inside the HubSpot site, with no separate system to host or sync.
  • Keep every client-specific value in theme fields, so the build can be reskinned for another client.
  • Let the client's team add and edit listings without a developer.

Solution/Approach

  • Defined the HubDB schema before any template work, so later column renames would not touch every template.
  • Used Select columns for status, property type, and neighborhood, so values stay consistent as listings are added.
  • Stored each property's coordinates in a Location column for the map.
  • Used the built-in hs_name and hs_path columns to turn each row into its own listing page through dynamic pages.
  • Queried the table once per page and printed the rows as JSON, well inside HubSpot's limit of 10 hubdb_table_rows() calls per page.
  • Drew one Leaflet marker per listing from that JSON, with each popup linking to its listing page.
  • Fed the listing cards and the map from one shared set of visible listings, so filters update both together.
  • Moved logo, colors, fonts, map center, zoom, tile URL, and attribution into theme fields.
  • Mapped colors to CSS custom properties, so popups and markers match the site without a per-client stylesheet.
  • Kept the HubDB column names, HubL queries, and Leaflet script in the shared module, where the client cannot break them.
  • Set the map tile provider through a module field as a deliberate choice, with attribution always visible.
  • Added "publish the HubDB table" to the launch checklist, since a draft table outputs nothing on live pages.

Results

The finished listings page with the map and listing cards, in the client's branding. The delivered site, with map and listings drawn from one HubDB table.

‍

‍

‍

One table drives the listing pages and the map.

‍

‍

The Location column stores each property's coordinates.

‍

‍

Each row becomes its own listing page.

‍

Markers and popups drawn from the HubDB rows.

‍

Attribution stays on the map.

‍

Filtering updates markers and cards together.

‍

Every client-specific value lives in theme fields.
  • One source of truth: a single HubDB table feeds both the listing pages and the map.
  • No separate map system: the map runs inside the HubSpot site, with no extra app to host or sync.
  • A reusable base: structure and branding are separated, so the same build can be reskinned for another client through theme fields.
  • Delivered white-label: the client's own brand is the only one visitors see.
Case Studies

Results That Speak for Themselves.

Migrating 9,000+ pages across 12 languages

Successful migration of 9,000+ pages across 12+ languages, with no critical downtime.

80% CPR reduction and 3x ROI over 6 years

Multi-channel strategy driving 50%+ monthly registration growth.

35% cost reduction while scaling SEO delivery globally

Ogilvy needed to scale SEO delivery across multiple markets without expanding headcount. Mavlers Agency stepped in as their invisible production partner.