U4-8709 - refactor UmbracoViewPage, RenderModel

This commit is contained in:
Stephan
2016-06-30 19:06:44 +02:00
parent d2de66ab5c
commit 9332335dff
20 changed files with 349 additions and 438 deletions

View File

@@ -32,7 +32,7 @@ namespace Umbraco.Web.Mvc
PreparePublishedContentRequest(umbracoContext.PublishedContentRequest);
//create the render model
var renderModel = new RenderModel(umbracoContext.PublishedContentRequest.PublishedContent, umbracoContext.PublishedContentRequest.Culture);
var renderModel = new ContentModel(umbracoContext.PublishedContentRequest.PublishedContent);
//assigns the required tokens to the request
requestContext.RouteData.DataTokens.Add(Core.Constants.Web.UmbracoDataToken, renderModel);