Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
viveak910 authored Oct 5, 2024
2 parents 0f2f071 + feeac07 commit 83da2b7
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/source/development/how-to-restrict-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,20 @@ The function has this signature:
}
```

`properties` is the current object data.
`block` is the block being evaluated in `BlockChooser`.
`navRoot` is the nearest navigation root object.
`contentType` is the current content type.
`user` is an object that represents the currently authenticated user.
`properties`
: The current object data.

`block`
: The block being evaluated in `BlockChooser`.

`navRoot`
: The nearest navigation root object.

`contentType`
: The current content type.

`user`
: An object that represents the currently authenticated user.

In the following configuration example, you can restrict a block so that it cannot be added unless the content type is `News Item` or the content item is in a specific path in the content tree (`/folder`):

Expand Down

0 comments on commit 83da2b7

Please sign in to comment.