Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

restrict Title Block onyl if present on page #230

Closed
jackahl opened this issue Mar 4, 2022 · 1 comment · Fixed by #231
Closed

restrict Title Block onyl if present on page #230

jackahl opened this issue Mar 4, 2022 · 1 comment · Fixed by #231

Comments

@jackahl
Copy link

jackahl commented Mar 4, 2022

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
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants