diff --git a/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs index e527d463c6..6cecc9dff5 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs @@ -26,7 +26,7 @@ namespace Umbraco.Core.PropertyEditors { //defaults Icon = Constants.Icons.PropertyEditor; - Group = string.Empty; + Group = "common"; //assign properties based on the attribute if it is found _attribute = GetType().GetCustomAttribute(false); diff --git a/src/Umbraco.Core/PropertyEditors/PropertyEditorAttribute.cs b/src/Umbraco.Core/PropertyEditors/PropertyEditorAttribute.cs index 598fc46e22..2f225f1764 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyEditorAttribute.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyEditorAttribute.cs @@ -20,6 +20,8 @@ namespace Umbraco.Core.PropertyEditors //defaults ValueType = "string"; + Icon = Constants.Icons.PropertyEditor; + Group = "common"; } public PropertyEditorAttribute(string alias, string name) @@ -33,6 +35,7 @@ namespace Umbraco.Core.PropertyEditors //defaults ValueType = "string"; Icon = Constants.Icons.PropertyEditor; + Group = "common"; } public PropertyEditorAttribute(string alias, string name, string valueType, string editorView) @@ -46,6 +49,9 @@ namespace Umbraco.Core.PropertyEditors Name = name; ValueType = valueType; EditorView = editorView; + + Icon = Constants.Icons.PropertyEditor; + Group = "common"; } public string Alias { get; private set; } diff --git a/src/Umbraco.Web.UI.Client/src/common/resources/datatype.resource.js b/src/Umbraco.Web.UI.Client/src/common/resources/datatype.resource.js index 0d8933fbbf..3e6a92f2e3 100644 --- a/src/Umbraco.Web.UI.Client/src/common/resources/datatype.resource.js +++ b/src/Umbraco.Web.UI.Client/src/common/resources/datatype.resource.js @@ -135,6 +135,15 @@ function dataTypeResource($q, $http, umbDataFormatter, umbRequestHelper) { 'Failed to retrieve data'); }, + getAllTypesAndEditors : function(){ + return umbRequestHelper.resourcePromise( + $http.get( + umbRequestHelper.getApiUrl( + "dataTypeApiBaseUrl", + "GetAllDataTypesAndEditors")), + 'Failed to retrieve data'); + }, + getAllPropertyEditors: function () { return umbRequestHelper.resourcePromise( diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.controller.js b/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.controller.js index 30d0bd5790..33c1da7703 100644 --- a/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.controller.js @@ -21,10 +21,14 @@ function DocumentTypePropertyController($scope, dataTypeResource) { function getAllDatatypes() { - dataTypeResource.getAll().then(function(data){ + dataTypeResource.getAllTypesAndEditors().then(function(data){ $scope.dataTypes.system = data; }); +// dataTypeResource.getAll().then(function(data){ +// $scope.dataTypes.system = data; +// }); + } function getAllUserConfiguredDataTypes() { diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.html b/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.html index ebd4e4a9e2..5be408f263 100644 --- a/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.html +++ b/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/property.html @@ -10,7 +10,7 @@ placeholder="Filter..."> - +
Your configurations