Enable preview on Umbraco V7.15.4To replicate:Received an error from the serverStacktrace
Hi Lee,
I've noticed an issue on V7.15.4 with Stacked Content recently.
I'm currently using Stacked Content with modules to build up a page. I did see a post where you have said preview doesn't work unless its the full page. Maybe the solution to the issue below is to turn off enable preview :).
To replicate:
If you have enabled content checked on the data type then on the page where you have the data type on it you get the following error. If you don't check enabled content on the data type then you don't get the error. Umbraco preview looks ok and front end is fine as far as I can tell.
Received an error from the server
An error occured
Value cannot be null. Parameter name: view
Exception Details
System.ArgumentNullException: Value cannot be null. Parameter name: view
Stacktrace
at System.Web.Mvc.ViewContext..ctor(ControllerContext controllerContext, IView view, ViewDataDictionary viewData, TempDataDictionary tempData, TextWriter writer)
at Our.Umbraco.StackedContent.Web.Helpers.ViewHelper.RenderPartial(String partialName, Object model)
at Our.Umbraco.StackedContent.Web.Controllers.StackedContentApiController.GetPreviewMarkup(JObject item, Int32 pageId)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass6_2.2(Object instance, Object[] methodParameters)
Enable preview on Umbraco V7.15.4To replicate:Received an error from the serverStacktrace
Hi Lee,
I've noticed an issue on V7.15.4 with Stacked Content recently.
I'm currently using Stacked Content with modules to build up a page. I did see a post where you have said preview doesn't work unless its the full page. Maybe the solution to the issue below is to turn off enable preview :).
To replicate:
If you have enabled content checked on the data type then on the page where you have the data type on it you get the following error. If you don't check enabled content on the data type then you don't get the error. Umbraco preview looks ok and front end is fine as far as I can tell.
Received an error from the server
An error occured Value cannot be null. Parameter name: view
Exception Details System.ArgumentNullException: Value cannot be null. Parameter name: view
Stacktrace
at System.Web.Mvc.ViewContext..ctor(ControllerContext controllerContext, IView view, ViewDataDictionary viewData, TempDataDictionary tempData, TextWriter writer) at Our.Umbraco.StackedContent.Web.Helpers.ViewHelper.RenderPartial(String partialName, Object model) at Our.Umbraco.StackedContent.Web.Controllers.StackedContentApiController.GetPreviewMarkup(JObject item, Int32 pageId) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass6_2.2(Object instance, Object[] methodParameters)
Hi Lindsay,
The previewer is looking for a partial-view for the doc type's alias in the "~/Views/Partials/Stack/" folder. It might be missing?
Nik wrote up some notes on this, as our docs are non-existent, sorry!
Hope this helps?
Cheers,
- Lee
Hi Lee,
With a bit of tweaking at my end it worked a treat. Thanks for pointing me in the right direction!
Lins
is working on a reply...