Clean up datatype configurations for V14 (#15718)
* Clean up datatype configurations for V14 * Fix merge * Remove ParameterEditorCollection + revert accidental changes to core project file
This commit is contained in:
@@ -272,8 +272,6 @@ public class UmbracoTestDataController : SurfaceController
|
||||
{
|
||||
Name = "Review"
|
||||
});
|
||||
docType.AddPropertyType(
|
||||
new PropertyType(_shortStringHelper, GetOrCreateMediaPicker(), "media") { Name = "Media" });
|
||||
docType.AddPropertyType(new PropertyType(_shortStringHelper, GetOrCreateText(), "desc") { Name = "Description" });
|
||||
Services.ContentTypeService.Save(docType);
|
||||
docType.AllowedContentTypes = new[] { new ContentTypeSort(docType.Key, 0, docType.Alias) };
|
||||
@@ -284,9 +282,6 @@ public class UmbracoTestDataController : SurfaceController
|
||||
private IDataType GetOrCreateRichText() =>
|
||||
GetOrCreateDataType(RichTextDataTypeName, Constants.PropertyEditors.Aliases.RichText);
|
||||
|
||||
private IDataType GetOrCreateMediaPicker() =>
|
||||
GetOrCreateDataType(MediaPickerDataTypeName, Constants.PropertyEditors.Aliases.MediaPicker);
|
||||
|
||||
private IDataType GetOrCreateText() =>
|
||||
GetOrCreateDataType(TextDataTypeName, Constants.PropertyEditors.Aliases.TextBox);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user