Updated the data type controller post method and moved validation, etc... over to a filter, updated data type tree with the create menu action to launch into a blank element.

This commit is contained in:
Shannon
2013-08-20 17:25:17 +10:00
parent ddef2cc7ff
commit b901ae3269
12 changed files with 169 additions and 89 deletions

View File

@@ -2,6 +2,9 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Umbraco.Core.Models;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.Models.ContentEditing
{
@@ -25,5 +28,17 @@ namespace Umbraco.Web.Models.ContentEditing
[DataMember(Name = "preValues")]
public IEnumerable<PreValueFieldSave> PreValues { get; set; }
/// <summary>
/// The real persisted data type
/// </summary>
[JsonIgnore]
internal IDataTypeDefinition PersistedDataType { get; set; }
/// <summary>
/// The PropertyEditor assigned
/// </summary>
[JsonIgnore]
internal PropertyEditor PropertyEditor { get; set; }
}
}