Exposes the IDocument property as CurrentDocument on the Model for MVC pages.
This commit is contained in:
@@ -5,10 +5,14 @@ using umbraco.interfaces;
|
||||
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the model for the current rendering page in Umbraco
|
||||
/// </summary>
|
||||
public class RenderModel
|
||||
{
|
||||
//public XmlNode CurrentXmlNode { get; set; }
|
||||
internal IDocument CurrentDocument { get; set; }
|
||||
//internal page UmbracoPage { get; set; }
|
||||
//NOTE: the model isn't just IDocument because in the future we will most likely want to add other properties here,
|
||||
//or we will want to add extensions.
|
||||
|
||||
public IDocument CurrentDocument { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user