Preview URLs

You can create preview URLs for any number of preview environments you might need to support by creating a simple string template in the model's settings under the schema tab.

Working with Preview URLs

Creating a Preview URL

It's most common to create a preview URL for models that represent a page and have a field such as a slug or other way to identify a unique URL on the web. Of course you aren't limited to only creating web URLs.

  1. Navigate to the schema editor tab.
  2. Find a model you'd like to create a preview URL for.
  3. Expand the three dot menu next to the model name.
  4. Select "Edit Model".
  5. Press a tab next to "settings" called "Preview URLs".
  6. Press the "+ Add" button below, provide a name and a URL string. Using :<apiId> in the string will replace that variable with the value from the entry. In the video above, https://preview-url.com/posts/:slug the :slug field will be dynamically replaced with the value of the slug field on that content entry.
  7. Press "Update Model".
  8. Return to that Model's content editing window and open an entry.
  9. A new "Open in ..." button will be in the sidebar.

Deleting a Preview URL

  1. Navigate to the edit modal of the content model you want to remove the preview URL from.
  2. Open the "Preview URL" tab.
  3. Press the trash icon next to the Preview URL you want to remove.
  4. Update the model.

Were you expecting something more?

We are constantly contributing to our documentation, but if you spot something we're missing, let us know and we'll be sure to add it.

This site uses cookies to provide you with a better user experience. For more information, refer to our Privacy Policy