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
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
thanks for your response.
But no, i want to query dynamicalyall 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.