Volto and Event content type

I'm curious how this would be done. It's not enough (apparently) to go into the Dexterity Content Types panel and enable Blocks behaviour in the Event content type. When I next edit an event I can use the Volto editor but when I save, the only thing that shows up where the body should be is the (plain) text I entered in the metadata...



I have an EventView override that renders something like

import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
import { hasBlocksData } from '@plone/volto/helpers';

...
return hasBlocksData(content) ? (
<Container className="view-wrapper event-view">
    <RenderBlocks {...props} />
</Container>
) : (<OldEventView {...props} />)
1 Like