Skip to content

Commit

Permalink
chore: fix relative paths on models page (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkukelka authored Jan 8, 2024
1 parent fe94c32 commit 525dcab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/dev-docs/backend-customization/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ General settings for the model can be configured with the following parameters:
| `kind`<br /><br />_Optional,<br/>only for content-types_ | String | Defines if the content-type is:<ul><li>a collection type (`collectionType`)</li><li>or a single type (`singleType`)</li></ul> |

```json
// ./api/[api-name]/content-types/restaurant/schema.json
// ./src/api/[api-name]/content-types/restaurant/schema.json

{
"kind": "collectionType",
Expand Down Expand Up @@ -653,7 +653,7 @@ Lifecycle hooks are functions that take an `event` parameter, an object with the

### Declarative and programmatic usage

To configure a content-type lifecycle hook, create a `lifecycles.js` file in the `./api/[api-name]/content-types/[content-type-name]/` folder.
To configure a content-type lifecycle hook, create a `lifecycles.js` file in the `./src/api/[api-name]/content-types/[content-type-name]/` folder.

Each event listener is called sequentially. They can be synchronous or asynchronous.

Expand Down

1 comment on commit 525dcab

@vercel
Copy link

@vercel vercel bot commented on 525dcab Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-strapijs.vercel.app
documentation-git-main-strapijs.vercel.app
docs-vercel-v4.strapi.io

Please sign in to comment.