Using X-Ray with Prismic
Learn how to enable X-Ray support for your Prismic content, allowing content editors to quickly access and edit content directly from your storefront.
Overview
The Prismic module provides built-in support for Front-Commerce's X-Ray feature
through the PrismicMetadataExtractor
. This allows content editors to:
- See which parts of the page come from Prismic
- Click directly through to edit the content in Prismic
- Understand the structure of their content
http://localhost:4000
Implementation Steps
Testing X-Ray Integration
- Start your development server
- Enable X-Ray mode using the Magic Button
- Verify that:
- Prismic content is highlighted with the Prismic brand color
- Clicking the edit button opens the correct page in Prismic
- Both page-level and block-level content are properly identified
- Slice content shows the correct edit button and links
See Also
- X-Ray Overview for general X-Ray concepts
- API Reference for PrismicMetadataExtractor details
- Adding Content Slices for more about Prismic slices