How to Preview Content in Cosmic

Community Articles
Community Articles How to Preview Content in Cosmic

Cosmic is dedicated to helping blended teams of developers and content editors collaborate to build apps faster. Here is a brief tutorial on setting up Preview Links in your Cosmic Bucket. 

Preview Cosmic Content in 3 Steps 

It's easy to set up Preview links on your Object Types to allow your writers to easily preview changes to content in draft or published state.  To add preview buttons to your Objects, simply go to the Object Type you want to Preview and click Settings > Preview Link.

Settings > Preview Link

Add your Preview Link (dynamically add the object slug with the [object_slug] shortcode).  If you would like to view Draft status Objects, you will need to make sure your web app queries the endpoint with ?status=all.  View the API documentation for more information on how to access your Objects in draft status.

Preview Link Slug

Once your Preview Link is available, you can draft content and save it. Then Click the Preview button located at the top right in the Edit Object page.

Cosmic Preview Button

I hope that you've found this tutorial helpful. If you have questions or comments about Content Editor Features in the Cosmic system, I'd love to hear about them. 

carson@cosmicjs.com 

You may also like


In this tutorial, we're going to build a digital shrine to the great musical artists of our time and to listening to music by album - the way great artists meant it to be listened to! In the process, you'll learn a little bit about Cosmic, React, CSS Grid, Flexbox, Material UI and Spotify's aweso
With revision history, you no longer have to worry about editing mistakes. You now have the power to go back in time and revert to to prior versions.
We recently released Cosmic Functions (public beta). We're excited to help teams build amazing modern products together with new serverless solutions.
A primary benefit of managing content API-first is that your content is transformed into portable and scalable content objects, available via API endpoint to create workflows with the third-party applications that your team uses.
Cosmic makes it easy to deploy your websites and applications to the web. You can deploy an app from any git repository to the Cosmic App Server from any Bucket. Cosmic uses Dokku (Docker + Heroku-like deployment) to deploy your app from any GitHub, BitBucket or any other public repo.
In this walkthrough, I'm going to show you how I build a blog application in Go Lang. I'll also talk about styling it using Tailwind CSS and lastly, I'll show you how you can utilize GitHub Actions to deploy your Go-based applications to Heroku.

Get Started with Cosmic

Build personal projects for free. Add your team at unbeatable prices.
Start Building Talk to Sales