When I setup a custom plugin data type (no manifest, just data annotations on code), it is recognized and works fine, allowing me to add items in backoffice. On save however, the content is removed (confirmed its not saved by refreshing and checking database).
This happens when using even the most basic setup I can try:
[DataEditor("Cloned.BlockList", "Cloned Block List", "blocklist", ValueType = "JSON", Group = "Lists", Icon = "icon-thumbnail-list")]
public class ClonedBlockListPropertyEditor : BlockListPropertyEditor
{
public ClonedBlockListPropertyEditor(ILogger logger, Lazy<PropertyEditorCollection> propertyEditors, IDataTypeService dataTypeService, IContentTypeService contentTypeService, ILocalizedTextService localizedTextService)
: base(logger, propertyEditors, dataTypeService, contentTypeService, localizedTextService)
{
}
}
When checking in browser console by looking at the returned server response I can see that it return null as the new value.
I compared and confirmed that the oldVal object is the same correct format as the documentation.
Is there another server side property required to allow BlockEditor to save to database?
I saw on github quite a few internal only references using BlockList/BlockEditor, but most seemed related to tests.
ie: ComplexPropertyEditorContentEventHandlerLink to composer
I really like the idea of "Umbraco.BlockList" but wanted to extend functionality in ways that BlockEditor seemed destined for, but really stuck...
Any help would be greatly appreciated!
Block Editor won't save
I'm experimenting with custom BlockEditors (base of BlockList) ref: https://our.umbraco.com/Documentation/Extending/Property-Editors/Build-a-Block-Editor
When I setup a custom plugin data type (no manifest, just data annotations on code), it is recognized and works fine, allowing me to add items in backoffice. On save however, the content is removed (confirmed its not saved by refreshing and checking database).
This happens when using even the most basic setup I can try:
When checking in browser console by looking at the returned server response I can see that it return null as the new value.
The above image returns from format:
I compared and confirmed that the
oldVal
object is the same correct format as the documentation.Is there another server side property required to allow BlockEditor to save to database? I saw on github quite a few internal only references using BlockList/BlockEditor, but most seemed related to tests. ie:
ComplexPropertyEditorContentEventHandler
Link to composerI really like the idea of "Umbraco.BlockList" but wanted to extend functionality in ways that
BlockEditor
seemed destined for, but really stuck... Any help would be greatly appreciated!Hi, I've created a bug report for you here https://github.com/umbraco/Umbraco-CMS/issues/9781
is working on a reply...