strapi/docs/v3.x/concepts/draft-and-publish.md

44 lines
1.7 KiB
Markdown
Raw Normal View History

# Draft and publish
The draft and publish feature allows you to save your content as a draft, to publish it later.
## Deactivating the draft and publish mode
By default, the draft and publish feature is activated for all newly created collection and single types. It is however possible to deactive the feature at content type level (i.e. it can be activated for one content type, but deactivated 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 mode for a content type:
1. Go the Plugins > Content-Types Builder.
2. Select the collection or single type for which you want draft & publish mode 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.
[screenshot]
## Switching from draft to published content
By default, each new created content is in draft mode, which is indicated on the right of the interface, below the Information box.
[screenshot]
Drafts can be modified and saved at will, until the content is ready to be published.
### Publishing a draft
To publish a draft, click on the **Publish** button.
When a content is not in draft mode anymore but published, this status is indicated on the right of the interface, below the Information box.
[screenshot]
### Unpublishing content
Published contents can be unpublished, switching back to the draft mode.
To unpublish content, click on the **Unpublish** button.