Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/developer-docs/latest/concepts/draft-and-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ The draft and publish feature allows you to save your content as a draft, to pub

## Activating or deactivating the draft and publish feature

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).
By default, the draft and publish feature is activated for all newly created collection and single types. It is however possible to deactivate 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 feature for a content type:

1. Go the Plugins > Content-Type Builder.
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 <Fa-PencilAlt /> button to access the content type's configurations.
4. Click on the "Advanced Settings" tab.
Expand Down
4 changes: 2 additions & 2 deletions docs/developer-docs/latest/developer-resources/cli/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You should never use this command to run a Strapi application in production.

Start a Strapi application with autoReload disabled.

This commands is there to run a Strapi application without restarts and file writes (aimed at production usage).
This command is there to run a Strapi application without restarts and file writes (aimed at production usage).
Certain features are disabled in the `strapi start` mode because they require application restarts.

Allowed environment variables:
Expand Down Expand Up @@ -177,7 +177,7 @@ When running the restore command, you can choose from three different strategies
**Alias** `admin:reset-password`

Reset an admin user's password.
You can pass the email and new password as options or set them interactivly if you call the command without passing the options.
You can pass the email and new password as options or set them interactively if you call the command without passing the options.

**Example**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const entries = strapi.db.query('api::article.article').findMany({
});
```

`$in` can be ommited when passing an array of values
`$in` can be omitted when passing an array of values

```js
const entries = strapi.db.query('api::article.article').findMany({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The [REST API](/developer-docs/latest/developer-resources/database-apis-referenc

## Sorting

Queries can accept a `sort` parameter that allow sorting on one or multiple fields with the following syntax:
Queries can accept a `sort` parameter that allows sorting on one or multiple fields with the following syntax:

### Sort using 2 fields

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default {
bootstrap(app) {
// Adding several links at once
app.addSettingsLinks(
'global', // id of the section to addd the link in
'global', // id of the section to add the link in
[{
intLabel: { id: String, defaultMessage: String },
id: String,
Expand Down Expand Up @@ -389,7 +389,7 @@ Injection zones are defined in the [register()](#register) lifecycle but compone

Strapi admin panel comes with predefined injection zones so components can be added to the UI of the [Content Manager](/user-docs/latest/content-manager/introduction-to-content-manager.md):

<!-- TODO: maybe add screenshots once design system is ready? -->
<!-- TODO: maybe add screenshots once the design system is ready? -->

| View | Injection zone name & Location |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ canonicalUrl: https://docs.strapi.io/developer-docs/latest/developer-resources/p

A Strapi [plugin](/developer-docs/latest/plugins/plugins-intro.md) can interact with the back end or the [front end](/developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.md) of the Strapi application. The Server API is about the back end part.

Creating and using a plugin interacting with the Server API consists in 2 steps:
Creating and using a plugin interacting with the Server API consists of 2 steps:

1. Declare and export the plugin interface within the [`strapi-server.js` entry file](#entry-file)
2. [Use the exported interface](#usage)
Expand Down Expand Up @@ -155,7 +155,7 @@ module.exports = {
singularName: 'content-type-a', // kebab-case mandatory
pluralName: 'content-type-as', // kebab-case mandatory
displayName: 'Content Type A',
description: 'A regular content type'
description: 'A regular content type',
kind: 'collectionType'
},
options: {
Expand Down Expand Up @@ -386,7 +386,7 @@ module.exports = (options, { strapi }) => {

Once a plugin is exported and loaded into Strapi, its features are accessible in the code through getters. The Strapi instance (`strapi`) exposes top-level getters and global getters.

While top-level getters imply chaining functions, global getters are syntactic sugar that allow direct access using a feature's uid:
While top-level getters imply chaining functions, global getters are syntactic sugar that allows direct access using a feature's uid:

```js
// Access an API or a plugin controller using a top-level getter
Expand Down