eea / volto-slate

DEPRECATED: Moved to Volto Core since 16.0.0.alpha.15
MIT License
31 stars 11 forks source link

restrict Title Block onyl if present on page #230

Closed jackahl closed 2 years ago

jackahl commented 2 years ago

In vanilla volto the title Block is addable when there is no title block present on the page. This behavior is overruled here: https://github.com/eea/volto-slate/blob/master/src/blocks/Title/index.js#L29

I think either the logic from volto should be ported over to here or the blocksconfig should extend the original config and just contain those fields, that have been changed. Original logic in Volto is this: https://github.com/plone/volto/blob/a48d7a2fdc24dad5e07ebe9447b79a66a9a337c8/src/config/Blocks.jsx#L174

sneridagh commented 2 years ago

in fact, the config should only "touch" the overridden parts, not the whole thing.