Single Block Editor #12927
Replies: 8 comments 1 reply
-
Simple solution could be to add settings for the following
|
Beta Was this translation helpful? Give feedback.
-
Yes to this request. |
Beta Was this translation helpful? Give feedback.
-
I was looking on how to do yesterday! Perfect timing. We definitely need a single block instance, where it fulfills the points above. |
Beta Was this translation helpful? Give feedback.
-
I have literally hit this issue today, its a great technique for varying configuration for a page instead of having a ton of checkboxes that are on every page and get rarely used... They can all be replaced by a single option nested content item that can choose a single configuration type from different named configuration Element Types (or none at all...) if the configuration type then needs values they can be entered on the selected element type... Anyway added it today on a V10 site with Block List Editor in Inline Mode... It does not quite feel the same as nested content.. Mainly that you can add new blocks... Even though its configured to allow only one item... It would be super cool if that option disappeared when one block had been selected and the lock list was limited to one item |
Beta Was this translation helpful? Give feedback.
-
Whilst not embedding, I put a PR in that at least stops them from doing something they're not allowed to do anyway! #13056 |
Beta Was this translation helpful? Give feedback.
-
I would love if we could have something like this in core, and I can work on a PR. Just need some pointers from HQ (@nul800sebastiaan @nielslyngsoe @filipbech )
|
Beta Was this translation helpful? Give feedback.
-
Hi @skttl Thanks for highlighting this idea/feature. I love this concept, actually it was also part of some initial material on Block Editors. So I think it will be good to have such. I would encourage to choose between your inline-example and the option to edit in an overlay(infinite editor). For those who have a ton of options that can be hidden away. I have some concerns on how this will work/look with features like:
I have set up a meeting with Lasse(PO) for next week where we will dedicate some time to look at solutions and more importantly whether these should be requirements for a Block Editor that is in Backoffice. If you already have some thoughts on how to enable these points, please pitch in. Thanks :-) |
Beta Was this translation helpful? Give feedback.
-
Hi @skttl and everyone reading along. We had a talk today, Søren, Lasse and I. We would like to provide a "Single mode" toggle in the PreValue Editor. “Single Mode toggle“ Prevalue editor should be made as a custom PreValue editor. Cause we want it to validate the number of Blocks to make sure only a single Block is set when in this mode. In the UI we will need to adjust some things when Single Mode is turned on. We also want to add a Property Action with a label of something like “Replace with an item from Clipboard”, as the Paste from Clipboard feature will be gone when we remove the Create buttons. I hope this description makes sense, And I'm looking forward to seeing Sørens take on this. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With Nested Content being killed with the new backoffice, I really think we need a replacement for the Single Item Mode using blocks.
Today, I can create a block list, set a single possible block type, and set the min and max items to 1 to get somewhat close. But the editor still has to add the block themselves, and they can add more (just not publish). That's not what I want. I want a single embedded doctype in my doctype.
When I do the block list single item mode, I get this UI:

But I just want it to be like this:

The output type could be
BlockListItem<TContent, TSettings>
or maybe justTContent
if no settings type is added.Beta Was this translation helpful? Give feedback.
All reactions