Using the API's capabilities for linked items, you can seamlessly retrieve navigation with minimal effort.
Get the navigation tree via API
With spaces created in your environment and a root item assigned, you can build your website's navigation structure. The navigation is also freely editable, so you can use it to store other related data. Based on the content model, a content type contains a subpages element, which creates the navigation tree visible in Kontent.ai. The navigation can then be easily retrieved via the API. It uses the existing functionality for linked items elements. This way, developers don’t need to write two separate logics for linked items and for navigation.Any content type can be a page, given that it contains a subpages element. To retrieve the actual content of your page, access your published content via the API and display it on your website.