Custom Views let you extend Crystallize with live previews or custom interfaces embedded directly in the Crystallize App. They allow you to see exactly how your content will appear in your storefront, app, or any other external interface while you work on it.
You can use Custom Views to preview your content side-by-side before publishing, connect an AI assistant that generates or enriches product data, or automatically translate content into multiple languages. This makes it easier to work with real-time content, streamline workflows, and create a tighter connection between your editorial and frontend environments.
You can create as many Custom Views as you need. Views are responsive and automatically update as changes are made to your content.
Before setting up a Custom View, your storefront or frontend application must support preview mode. This typically means being able to fetch and render draft content from Crystallize through a dedicated preview environment or a preview mode feature (for example, Next.js Preview Mode).
To enable communication between the App and your frontend during preview mode, include this script tag in your preview environment:
<script defer src="https://app.crystallize.com/static/frontend-preview-listener.js" ></script>
<script defer src="https://app.crystallize.com/static/frontend-preview-listener.js" ></script>
{{itemPath}} parameter, which Crystallize replaces with the current catalogue item path.{{itemExternalReference}}{{language}} (recommended for multilingual projects)Example URLs
https://my.shop.com/{{language}}/{{itemPath}}
https://my.shop.com?item={{itemPath}}
https://my.shop.com/{{itemPath}}?preview=true
https://my.shop.com/api/preview?slug={{itemPath}} (Next.js)https://my.shop.com/{{language}}/{{itemPath}}
https://my.shop.com?item={{itemPath}}
https://my.shop.com/{{itemPath}}?preview=true
https://my.shop.com/api/preview?slug={{itemPath}} (Next.js)When finished, click Add custom view.
If the target URL defines an image in its meta tags, you’ll see a preview thumbnail. Otherwise, Crystallize displays a magnifying glass icon.
To edit or delete a view, use the action menu (⋯) on the right-hand side of the entry.
Once you’ve created Custom Views, they can be accessed directly from the Catalogue.
To preview your content side-by-side while editing:
To close a pane, open its Views dropdown and choose Close split.