Preview unpublished documents


I’m using the Prismic php-kit in a codeigniter 4 app. I have the Preview functionality working, going directly to the page that I’m previewing. Is there a way to provide a preview link for unpublished documents ? Thanks.

Hi @lrmpham, yes you should be able to preview and share unpublished documents. The only thing you need to do is make sure that you have the Prismic toolbar script on your 404 page. When you preview an unpublished document it will first show the 404 page, then it should load the page.

Once the page is loaded you should be able to share the preview using the toolbar :slight_smile:

Ok, got it. I have to add the unpublished documents to a release. Then the preview icon will be enabled. Thanks.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.