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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
src/Umbraco.Web/Models/ContentEditing/BackOfficePreview.cs
Normal file
11
src/Umbraco.Web/Models/ContentEditing/BackOfficePreview.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user