Choose your navigation approach
Is this page helpful?
depth
parameter to retrieve more than one level of subpages or linked items if you want to show all navigation with one API call.
modular_content
property of the response.
And that’s it! You now have a dynamic menu that your content creators can manage entirely from Kontent.ai.
// Tip: Find more about PHP SDKs at https://kontent.ai/learn/php
// Defined by Composer to include required libraries
require __DIR__ . '/vendor/autoload.php';
use Kontent\Ai\Delivery\DeliveryClient;
$client = new DeliveryClient('8d20758c-d74c-4f59-ae04-ee928c0816b7');
// Gets navigation items and their linked items
$root = $client->getItem('root_navigation_item', (new QueryParams())
->depth(5));
// Gets specific elements of all articles
$articles = $client->getItems((new QueryParams())
->equals('system.type', 'article')
->elements(array("title", "url")));