# Draft and publish

The draft and publish feature allows you to save your content as a draft, to publish it later.

# Activating or deactivating the draft and publish feature

By default, the draft and publish feature is enabled for all newly created collection and single types. It is however possible to disable the feature at the content-type level (i.e. it can be enabled for one content-type, but disabled for another).

️❗️ WARNING

If the feature is deactivated while contents are saved as drafts, they will automatically be deleted. Make sure all contents are published before deactivating the feature.

To deactivate the draft and publish feature for a content-type:

  1. Go to the Plugins > Content-type Builder.
  2. Select the collection or single type for which you want the draft and publish feature to be deactivated.
  3. Click on the Edit button to access the content-type's configurations.
  4. Click on the "Advanced Settings" tab.
  5. In the DRAFT/PUBLISH section, click on the OFF button.
  6. Click on the Finish button to confirm the deactivation of the feature.

💡 TIP

It is also possible to activate or deactivate the feature when creating a new content-type. To do so: after clicking on the Create new collection/single type button in the Content-type Builder, follow steps 4 and 5 from the procedure above.

Deactivate Draft & Publish

# Switching from draft to published content

💡 NOTE

Publishing content may require specific roles and permissions. For example, in the Community version, the default roles grant permission to editors to publish content, but authors can only create and edit drafts.

By default, each newly created content is a draft, which is indicated on the right of the interface, below the Information box.

Editing draft version

Drafts can be modified and saved at will, until they are ready to be published.

# Publishing a draft

To publish a draft, click on the Publish button in the top right corner of the content editor.

️❗️ CAUTION

Before publishing a draft, make sure it doesn't have relations with other non-published content, otherwise some of the content may not be available through the API.

When a content is not a draft anymore, but has been published, it is indicated on the right of the interface, below the Information box.

Editing published version

# Unpublishing content

Published contents can be unpublished, switching back to being drafts again.

To unpublish content, click on the Unpublish button in the top right corner of the content editor.