diff --git a/docs/developer-docs/latest/concepts/draft-and-publish.md b/docs/developer-docs/latest/concepts/draft-and-publish.md deleted file mode 100644 index 42001c39d5..0000000000 --- a/docs/developer-docs/latest/concepts/draft-and-publish.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: Draft and publish - Strapi Developer Docs -description: The draft and publish feature allows you to save your content as a draft, to publish it later. -canonicalUrl: https://docs.strapi.io/developer-docs/latest/concepts/draft-and-publish.html ---- - -# 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](../assets/concepts/draft-publish/deactivating_draft_publish.png) - -## Switching from draft to published content - -::: tip 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](../assets/concepts/draft-publish/editing_draft_version.png) - -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. - -::: warning 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](../assets/concepts/draft-publish/editing_published_version.png) - -### 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. diff --git a/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication.md b/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication.md index 71c5d57116..071717d58d 100644 --- a/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication.md +++ b/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication.md @@ -11,7 +11,7 @@ The [REST API](/developer-docs/latest/developer-resources/database-apis-referenc Using optional Strapi features can provide some more filters: - If the [Internationalization (i18n) plugin](/developer-docs/latest/plugins/i18n.md) is enabled on a content-type, it's possible to filter by locale. -- If the [Draft & Publish](/developer-docs/latest/concepts/draft-and-publish.md) is enabled, it's possible to filter based on a `live` or `draft` state. +- If the [Draft & Publish](/user-docs/latest/content-manager/saving-and-publishing-content.md) is enabled, it's possible to filter based on a `live` or `draft` state. :::: tip @@ -336,7 +336,7 @@ The `locale` API parameter can be used to [get entries from a specific locale](/ ## Publication State :::prerequisites -The [Draft & Publish](/developer-docs/latest/concepts/draft-and-publish.md) feature should be enabled. +The [Draft & Publish](/user-docs/latest/content-manager/saving-and-publishing-content.md) feature should be enabled. ::: Queries can accept a `publicationState` parameter to fetch entries based on their publication state: