Provided alternative messages for users that do and do not have access to document/media types for when trying to create content or media and no types can be created.

Where they do, provided a link to go to the page where child nodes can be edited.
This commit is contained in:
Andy Butland
2019-06-02 09:51:32 +02:00
committed by Sebastiaan Janssen
parent 9170061810
commit 9fffdb407a
13 changed files with 198 additions and 93 deletions

View File

@@ -38,6 +38,8 @@ namespace Umbraco.Web.Models.ContentEditing
[DataMember(Name = "updater")]
public UserProfile Updater { get; set; }
public int ContentTypeId { get; set; }
[DataMember(Name = "contentTypeAlias", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string ContentTypeAlias { get; set; }

View File

@@ -108,6 +108,9 @@ namespace Umbraco.Web.Models.ContentEditing
[DataMember(Name = "treeNodeUrl")]
public string TreeNodeUrl { get; set; }
[DataMember(Name = "contentTypeId")]
public int ContentTypeId { get; set; }
[DataMember(Name = "contentTypeAlias", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string ContentTypeAlias { get; set; }