I was recently referencing the blocks docs at Block with a custom schema — Plone Documentation v6
and I noticed I had to add a group: 'common',
line in the configuration:
config.blocks.blocksConfig.block01 = {
id: 'block01', // this is the block id, it must match the id on the previous line
title: 'Block 01', // this is the block title
view: View01, // this is the block's view component
// We do not need a specific edit component, Volto will use the default
// edit: null;
blockSchema: Schema01, // this is the schema that will be used to render the edit form
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
};
for the block to show up in the menu. I'm not sure if this is because of using Volto 16.26.0 and for later versions no group: 'common',
line is needed?
It seemed this might be confusing for a newcomer and I thought I'd ask.