• Cheat sheets
  • Documentation
  • API reference
  • Product updates
  • Sign in
Kontent.ai Learn
  • Try Kontent.ai
  • Plan
  • Set up
  • Model
  • Develop
  • Create
Copyright © 2024 Kontent.ai. All rights reserved.
  • Web
  • Privacy policy
  • Cookies policy
  • Consent settings
  • Security
  • GDPR
  • Docs
  • Collections
  • Custom apps
  • Custom elements
  • Environments
  • Keyboard shortcuts
  • Mission Control
  • Projects
  • Task management
  • Terminology
    • Activate Web Spotlight
    • Retrieve navigation via API
    • Page tree in Web Spotlight
    • Content in Web Spotlight

Retrieve Web Spotlight navigation via API

Martina Farkasova
3 minutes
Web Spotlight / API
Download PDF
Leveraging the API's capabilities for linked items, you can seamlessly retrieve the Web Spotlight navigation with minimal effort.

Retrieve the website tree via API

Web Spotlight brings back terms from traditional CMSs – the root item, pages, and subpages. When Web Spotlight is activated in your project, it models website navigation within your content model. The new content types serve for the page tree navigation on your website. They are also freely editable, so you can use your navigation to keep other related data. Based on the content model, namely the Spotlight’s Subpages element, Web Spotlight creates the page 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. To retrieve the actual content of your page, access your published content via the API and display it on your website the same way as you do with projects without Web Spotlight.

Enable inline editing with Smart Link SDK

Combine preview and the Smart Link SDK that allows the Add buttons and edit links on preview. This enables your content creators to live-edit the content directly from Kontent.ai.
Editing content in the in-context editor in Web Spotlight.

Permissions in Web Spotlight

  • Web Spotlight uses the existing permission model. If a user is allowed to change content items of a given content type, they can do that in Web Spotlight as well. Content that the user doesn’t have permission for is greyed out and displayed as unavailable.
  • Environments have Web Spotlight activated automatically upon their creation.
  • Cloned projects have Web Spotlight deactivated in the new project. The Subpages element will be converted to the Linked items element in this case. If you activate Web Spotlight for the project, the element will be converted back to the Subpages element, and everything will work as expected.
Explore your path to mastery
  • Say Hello to Web Spotlight and adjust your project and web app for the best experience.
  • Uncover how to model optimal website navigation.
  • Retrieve the website tree via API
  • Enable inline editing with Smart Link SDK
  • Permissions in Web Spotlight