If your website has ebooks, guides, videos, or downloads, a simple blog isnโt enough anymore. You need a structured, filterable resource library โ something that feels organized and easy to explore.
This is where HubDB in HubSpot Content Hub becomes incredibly powerful.
In this guide, youโll learn how to build a scalable resource library using HubDB, similar to what high-performing marketing sites use.
A resource library is a centralized section where users can browse:
Instead of scattered content, everything is organized and filterable.
Using HubDB allows you to:
๐ Perfect for SEO + UX
Go to:
๐ Content โ HubDB โ Create Table
Add columns like:
Title (Text)
Description (Rich Text)
Category (Dropdown)
Resource Type (Dropdown)
Thumbnail (Image)
File / Link (URL)
Slug (Text)
๐ Example categories:
๐ Resource types:
In your template:
{% set rows = hubdb_table_rows(123456) %}<div class="resource-grid">
{% for row in rows %}
<div class="resource-card">
<img src="{{ row.thumbnail.url }}">
<h3>{{ row.title }}</h3>
<p>{{ row.description }}</p>
<a href="{{ request.path }}/{{ row.slug }}">View Resource</a>
</div>
{% endfor %}
</div>
Enable dynamic pages in HubDB.
Template example:
{% set row = dynamic_page_hubdb_row %}<h1>{{ row.title }}</h1>
<img src="{{ row.thumbnail.url }}">
<div>{{ row.description|safe }}</div>
<a href="{{ row.file }}">Download</a>
๐ This creates individual pages like:
/resources/seo-guide
/resources/hubspot-checklist
Add filter logic:
{% set category = request.query_dict.category %}Example dropdown:
<select name="category" onchange="applyFilters()"> <option value="">All Categories</option> <option value="Marketing">Marketing</option> <option value="SEO">SEO</option> </select>
Two options:
Direct Download
<a href="{{ row.file }}">Download</a>Gated Content (Recommended)
๐ Perfect for lead generation
Add columns:
Then:
<title>{{ row.meta_title }}</title>๐ Each resource becomes an SEO page
You can build:
๐ This can become a major traffic driver
HubDB allows you to build scalable, filterable resource libraries inside HubSpot Content Hub. By combining structured data with dynamic pages and filters, you can create a powerful content hub that improves both user experience and SEO performance.