# menu\_subtree

Source: https://zotonic.com/docs/1626/menu_subtree

URI: https://zotonic.com/id/1626

Language: en



Get the subtree of an id in a menu (if any).

Returns the subtree of the filter value. Useful for showing a part of a menu when browsing sub-pages.

If the given id is not found inside the menu, it returns `undefined`.

If no argument is given, it takes menu from the resource with the name `main_menu`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1626?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1626?language=en>)
