I want to create a menu using the dynamic pages defined in a HubDB table. So, when I add a new row to the table, the corresponding page automatically gets added to the menu.
Is this possible? If so how?
Thanks!
I want to create a menu using the dynamic pages defined in a HubDB table. So, when I add a new row to the table, the corresponding page automatically gets added to the menu.
Is this possible? If so how?
Thanks!
Hi @khookguy,
yes, this is possible and quite easy.
First create a (new) HubDB table and create at least two columns. One for the name and the second for the URL/Link.
Create a new module and write your layout. The most easiest one(a list) would be
{% set hubdb = hubdb_table_rows(*HubDB-ID*) %}
<ul>
{% for item in hubdb %}
<li><a href="{{item.url}}">{{item.name}}</a></li>
{% endfor %}
</ul>
you should add CSS classes to style the menu
best,
Anton
Thanks Anton, but what I want to do is create/update an actual HubSpot navigation menu. Not just a list that I style with some CSS.
@khookguy if you want to connect a HubDB table directly to a HubSpot Navigation menu you will need to use the APIs for both of those and your own server that would handle the logic and handle the http requests between the two each time the table is published. It’s possible but it’s definitely a bit of work.
Hi Stefen,
Thanks for your response. It makes sense, but I’m not able to find any HubSpot API for navigation menus, either here: 2026-03 API reference - HubSpot docs or in the new apis: 2026-03 API reference - HubSpot docs
Is it possible to manage navigation menus with the API?
Mark
@khookguy ah, I’m not seeing it either now that you mention it. I figured it would have been accessible via one of the CMS APIs but doesn’t look like it actually is.
OK. So, it seems like this cannot be automated through the APIs at this time. For now, it seems like to do this, I’d need to forgo the HubSpot navigational menus and build a custom module. Thanks for your help.