If you want to build scalable, data-driven pages in HubSpot, HubDB is your most powerful tool.
Instead of creating 100s of pages manually,HubDB lets you generate dynamic pages from structured data — perfect for directories, listings, events, locations, and more.
Understanding how to build dynamic pages using HubDB in HubSpot Content Hub can completely change how you approach website development.
HubDB is HubSpot’s database tool that allows you to store structured data in tables.
Each table contains:
You can then use this data to dynamically generate pages.
Use HubDB when you need to:
👉 Example (very relevant to you):
BeeBuddy-style school listings or summer camp directories
Name (Text)
Location (Text)
Category (Dropdown)
Image (Image)
Slug (Text)
4. Add rows (each row = one item/page)
Go to:
👉 Content → Design Manager
Create a new template and add this:
{% set row = dynamic_page_hubdb_row %}<h1>{{ row.name }}</h1>
This template will be used for all dynamic pages.
Example output:
yoursite.com/schools/dps-delhi
yoursite.com/schools/modern-school
Now create a main listing page:
{% set rows = hubdb_table_rows(123456) %}
{% for row in rows %}
This creates a directory linking to all dynamic pages.
Example: Filter by location
{% set location = request.query_dict.location %}👉 This allows URLs like:
?location=Delhi
Add columns in HubDB:
Then use:
{% set row = dynamic_page_hubdb_row %}<title>{{ row.meta_title }}</title>
<meta name="description" content="{{ row.meta_description }}">
👉 This is crucial for programmatic SEO
Best practices:
You can build:
HubDB allows you to create dynamic, scalable websites inside HubSpot Content Hub without manually building each page. By combining structured data with dynamic templates, you can build powerful listing platforms, directories, and SEO-driven page networks.