Create dynamic pages with nested HubDB tables.
Enable child tables in your table
Select child tables for each row
parent_path/child_path
. For example, the page path for the banana
row will be page_path/foods/banana
.By turning on the Automatically create listing pages for child tables setting, HubSpot will also automatically create intermediate listing pages for the child table rows (page_path/foods
and page_path/beverages
).If you would rather have those intermediate routes not resolve and return a 404 page, deselect the Automatically create listing pages child child tables checkbox in the table’s settings.Create the multilevel template
dynamic_page_route_level
HubL variable. The top-level template starts at a value of 0
and increments for each table layer.Populate the top-level template
dynamic_page_hubdb_table_id
.hs_child_table_id
property of each category row retrieves the table IDs of the child tables.Populate the dynamic-level templates
foods/banana
, the dynamic_page_hubdb_row
variable will be set to the banana
row. However, you may want to access data from the food
row. You can use hs_parent_row
value on the dynamic_page_hubdb_row
to retrieve the parent row:Link parent table to page