Gets templates working

This commit is contained in:
Shannon
2017-05-31 13:09:26 +02:00
parent a70c9226fc
commit 106a06be2a
3 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ namespace Umbraco.Core.Persistence.Factories
entity.DisableChangeTracking();
entity.CreateDate = d.createDate;
entity.CreatorId = d.nodeUser;
entity.CreatorId = d.nodeUser == null ? 0 : d.nodeUser;
entity.Id = d.id;
entity.Key = d.uniqueID;
entity.Level = d.level;

View File

@@ -16,6 +16,7 @@ namespace Umbraco.Web.Models.ContentEditing
///// A caption for the search result
///// </summary>
//[DataMember(Name = "caption")]
//public string Caption { get; set; }
//public string Caption { get; set; }
}
}

View File

@@ -94,6 +94,8 @@ namespace Umbraco.Web.Models.Mapping
basic.Icon = "icon-item-arrangement";
else if (entity.NodeObjectTypeId == Constants.ObjectTypes.MediaTypeGuid)
basic.Icon = "icon-thumbnails";
else if (entity.NodeObjectTypeId == Constants.ObjectTypes.TemplateTypeGuid)
basic.Icon = "icon-newspaper-alt";
}
});