Open MiguelGuedelha opened 1 month ago
Hi there @MiguelGuedelha!
Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.
We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.
Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:
Thank @MiguelGuedelha , very detail issue information. I was able to reproduce this on v15.0.0-rc2.
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.5.1
Bug summary
The purpose of Single Block Mode is to help the Models Builder in giving us a single block item (for building fields which are meant to have only a single block item, and not many, such as adding a single re-usable Widget block to many pages, for example)
However, such single blocks, don't always necessarily need to exist on a page, they could be optional.
The current configuration of a block list in single mode requires the following settings:
When such a block list gets added to a document type as a field, it will cause the field to essentially become mandatory / you won't be able to save the page unless a block of the given list type is added to the document.
Is there a design decision somewhere that prevents the following configuration from also making ModelsBuilder generate a BlockListItem\<T> with an empty list returning default(T)?
The mandatory/optional nature of the field would then instead be controlled by the document that uses it.
Thoughts? The current way it works essentially renders Single Block Mode useless unless the fields it is going to be used are always mandatory by nature of the document type anyways.
Specifics
No response
Steps to reproduce
Expected result / actual result