Changes the Preview Index.cshtml to use a real model instead of viewdata, adds the correct razor web.config for these preview views, changes the enabled feature to be able to inject a razor view instead of strings

This commit is contained in:
Shannon
2018-03-14 13:56:49 +11:00
parent 7db4f841e3
commit 3e2fa64820
9 changed files with 41 additions and 15 deletions

View File

@@ -6,6 +6,7 @@ using Umbraco.Core.Models;
namespace Umbraco.Web.Models.ContentEditing
{
[DataContract(Name = "auditLog", Namespace = "")]
public class AuditLog
{
@@ -31,4 +32,4 @@ namespace Umbraco.Web.Models.ContentEditing
[DataMember(Name = "comment")]
public string Comment { get; set; }
}
}
}

View File

@@ -0,0 +1,11 @@
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// The model representing Previewing of a content item from the back office
/// </summary>
public class BackOfficePreview
{
public string PreviewExtendedView { get; set; }
public bool DisableDevicePreview { get; set; }
}
}