How to create dynamic menu by parent page

Hi,
i want to get all subpages of a parent page and tried to use menu() Hubl function.
How to setup the Hubl menu function to get all subpages of a specific page like
parent page: /marketing
all subpages like:
/marketing/test1

/marketing/test2

/marketing/test3
Thanks

Hui @ALeinweber,

do you mean dropdowns like the “About” menu item in this screenshot?

If so, you can set this in the global navigation settings by drag&drop the menu items that you’d like to have as dropdown items onto/below the desired nav item. You’ll find the navigation settings here:

Hub settings(gear icon top right) → Content → Navigation menus → YOUR MENU

Once created open your global header and select the desired menu. Save/Update/Publish → done

best,

Anton

thanks for your response.
But no, i want to query dynamicaly all Subpages of a page, without defining by hand a menu.

My idea was to create a menu with a parent page like “Marketing” and query all subpages with the menu() Hubl function. I thought root_type: “parent” or “parent_page” would do the work, but its always empty. How to setup this function to get all subpages of “/marketing”?

@ALeinweber parent/child pages are currently manually created/maintained with the exception of dynamic pages, you can set a child path for the dynamic page that will create this same relationship, and blogs where this is created automatically. The capabilities surrounding parent/child pages is fairly limited - I don’t think it’s possible to do what you’re looking for, if @Anton isn’t able to help further you might also try asking in the HubSpot Developer Slack in the corresponding channel.