From e7015fa48f1773877d75edf3d129a61676a44ce7 Mon Sep 17 00:00:00 2001 From: Arkadiusz Biel Date: Thu, 5 Nov 2020 13:22:34 +0000 Subject: [PATCH] add editor alias to PropertyModelType --- src/Our.ModelsBuilder/Building/PropertyTypeModel.cs | 5 +++++ src/Our.ModelsBuilder/Umbraco/UmbracoServices.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/src/Our.ModelsBuilder/Building/PropertyTypeModel.cs b/src/Our.ModelsBuilder/Building/PropertyTypeModel.cs index 8b7c8654..ad826e7e 100644 --- a/src/Our.ModelsBuilder/Building/PropertyTypeModel.cs +++ b/src/Our.ModelsBuilder/Building/PropertyTypeModel.cs @@ -21,6 +21,11 @@ public class PropertyTypeModel /// Gets or sets the alias of the property. /// public string Alias { get; set; } + + /// + /// Gets or sets the alias of the editor Alias of the property. + /// + public string EditorAlias { get; set; } /// /// Gets or sets the name of the property. diff --git a/src/Our.ModelsBuilder/Umbraco/UmbracoServices.cs b/src/Our.ModelsBuilder/Umbraco/UmbracoServices.cs index 51c3176d..f56ca005 100644 --- a/src/Our.ModelsBuilder/Umbraco/UmbracoServices.cs +++ b/src/Our.ModelsBuilder/Umbraco/UmbracoServices.cs @@ -93,6 +93,7 @@ private List GetTypes(PublishedItemType itemType, IContentType var propertyTypeModel = new PropertyTypeModel { Alias = propertyType.Alias, + EditorAlias = propertyType.PropertyEditorAlias, ContentType = contentTypeModel, Name = propertyType.Name,