Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs/…/blocks/ #3272

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 2 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
7 changes: 3 additions & 4 deletions docs/source/blocks/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ html_meta:

# Blocks settings

You should make Volto aware of your custom blocks.
Since Volto have its own set of default blocks, you should extend them by adding your custom ones in your project configuration object.
Volto has a set of default blocks. You can extend it by adding your custom blocks in your project configuration object.
ksuess marked this conversation as resolved.
Show resolved Hide resolved

## Configuring a new block

So we add these lines to the `src/config.js`:
To extend the default set of blocks, you add the following lines to the `src/config.js`:

```js
import MainSliderViewBlock from '@package/components/Blocks/MainSlider/View';
Expand Down Expand Up @@ -139,7 +138,7 @@ defineMessages({
});
```

Our new block should be ready to use in the editor.
Our new block should be ready to use in the editor by selecting in the editor's block chooser.
ksuess marked this conversation as resolved.
Show resolved Hide resolved

## Other block options

Expand Down