Create a Page, Add Content & Publish

By the end of this document you will be able to create a document in Prismic and deliver it through the API.


Create a Page

To create 'Page' in your repository: go to the 'Document' tab and then click on the green pencil button. This will either open a new document or ask you to choose which type of document you would like to create, be it a 'Page',' Menu' or whatever.


Add and Publish the Content

Once your document is opened the first thing you'll need to do is fill in the UID field. The UID field is a unique identifier used to create user-friendly URLs for your website. Check out the complete guide for the UID field.

After you've done this you can then toggle the Slice Zone, choose a Slice, and add content to the fields.

Once you are done editing your document, save it. The "Save" button will then become the "Publish" button. Clicking the "Publish" button and selecting "Publish Now" will immediately send your content through the API to your application. You can also see the API response in the API Browser.

To view your content in your local project run npm run dev or yarn dev in your terminal. You should see your new page with the added content while visiting the URL http://localhost:3000/name-of-page-uid (Make sure to replace "name-of-page-uid" with the uid of your document).

Example Video:


Previews and Releases

This powerful Prismic feature will allow you to see how content changes will affect your website without publishing and/or making breaking changes. It will also help you save on re-building costs :)


Content Changes not Appearing on your Website?

There can be a number of simple reasons why changes that you made may not be appearing in your website application. Check out our troubleshooting guide for solutions.


Related Articles


Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Get in touch with us on our Community Forum.