Feature: single block property editor (#20098)

* First Go at the single block property editor based on blocklistpropertyeditor

* Add simalar tests to the blocklist editor

Also check whether either block of configured blocks can be picked and used from a data perspective

* WIP singleblock Valiation tests

* Finished first full pass off SingleBlock validation testing

* Typos, Future test function

* Restore accidently removed file

* Introduce propertyValueConverter

* Comment updates

* Add singleBlock renderer

* Textual improvements

Comment improvements, remove licensing in file

* Update DataEditorCount by 1 as we introduced a new one

* Align test naming

* Add ignored singleblock default renderer

* Enable SingleBlock Property Indexing

* Enable Partial value merging

* Fix indentation

---------

Co-authored-by: kjac <kja@umbraco.dk>
This commit is contained in:
Sven Geusens
2025-09-17 07:20:09 +02:00
committed by GitHub
parent eea970a648
commit dd01a56d2a
19 changed files with 1488 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockListItem>
@{
if (Model.ContentKey == Guid.Empty) { return; }
var data = Model.Content;
}
@await Html.PartialAsync(
Html.SingleBlockPartialWithFallback("singleBlock/Components/" + data.ContentType.Alias,
"blocklist/Components/" + data.ContentType.Alias )
, Model)