Skip to content

Commit

Permalink
Add block group name in block configuration (#6681)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Piercy <[email protected]>
  • Loading branch information
erral and stevepiercy authored Feb 6, 2025
1 parent b8f6cc3 commit 928d751
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/blocks/examples/custom-schema-and-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ config.blocks.blocksConfig.block01 = {
icon: imagesSVG, // this is the image that will be shown in the block selector
sidebarTab: 1, // this is set to 1 to have the `Block` tab selected in the sidebar
// editor when editing this block
group: 'common' // to show the block in the block select under the `common` category
};
```

Expand Down
1 change: 1 addition & 0 deletions docs/source/blocks/examples/custom-schema-view-and-edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ config.blocks.blocksConfig.block02 = {
// this is set to 1, which selects the `Block` tab in the sidebar editor
// when editing this block
sidebarTab: 1,
group: 'common' // to show the block in the block select under the `common` category
};
```

Expand Down
1 change: 1 addition & 0 deletions docs/source/blocks/examples/custom-view-and-variations.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ config.blocks.blocksConfig.block03 = {
icon: imagesSVG, // this is the image that will be shown in the block selector
sidebarTab: 1, // this is set to 1 to have the `Block` tab selected in the sidebar
// editor when editing this block these are the variations available for this block
group: 'common', // to show the block in the block select under the `common` category
variations: [
{
id: 'variation01', // this is the id of the variation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ config.blocks.blocksConfig.block04 = {
sidebarTab: 1, // this is set to 1 to have the `Block` tab selected in the sidebar
// editor when editing this block these are the variations available for this block
// these are the variations available for this block
group: 'common', // to show the block in the block select under the `common` category
variations: [
{
id: 'variation01', // this is the id of the variation
Expand Down
1 change: 1 addition & 0 deletions packages/volto/news/6679.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the block `group` name in the block configuration. @erral

0 comments on commit 928d751

Please sign in to comment.