Doc Type Editor With Nested Content Display Content in Back Office Throws Null Reference Exception Front End
Hi
Umbraco 7.6.5
Has anyone else has this problem. I can see the content update the content in the back office, put a break point on the code and get 3 records returned.
But if I try to see the content on the home page no data is returned and I get a null reference exception thrown.
@inherits Umbraco.Web.Mvc.UmbracoViewPage
<h1>Carousel Text Been Displayed in Backoffice</h1>
@{
var items = Model.GetPropertyValue<IEnumerable<IPublishedContent>>("carouselItem");
foreach (var item in items)
{
<h3>@item.GetPropertyValue("textToDisplay")</h3>
}
}
Doc Type Editor With Nested Content Display Content in Back Office Throws Null Reference Exception Front End
Hi
Umbraco 7.6.5
Has anyone else has this problem. I can see the content update the content in the back office, put a break point on the code and get 3 records returned.
But if I try to see the content on the home page no data is returned and I get a null reference exception thrown.
Below is the json getting returned
Code used:
is working on a reply...