Building dynamic pages with HubDB on the HubSpot CMS.
Build your HubDB Team Member Table
Create a Custom Module
Add Custom Field to the Custom Module
Add Logic to Handle Dynamic Filtering by Page URL
queryparam
variable from the beginning of this tutorial? This code puts it to use! Using the request object on the CMS page, specifically the path, we can control which team members are returned. Depending on the path of the page we set queryparam
equal to a specific value from our HubDB table’s location field. When this value is appended as our Table’s filter option, our Team Member page will be dynamically updated to reflect only those members!Generate your Team Member Pages