I'm at a loss as to why this does not work, I'm using Umbraco version 7.6.5 assembly: 1.0.6428.37121 with Nested Content 0.5.0, I have read the pdf file for instruction and also many websites and I still cannot get it to work.
My doctype for the blue print is headerImageBodyTextAndLink, I add this to the doctype ParentDocType, but when I run page and put break point on:
@{
var items = Model.HasValue("headerImageBodyTextAndLink") ? Model.GetPropertyValue<IEnumerable<IPublishedContent>>("headerImageBodyTextAndLink") : null;
var test2 = items;
}
It always returns null, Am I missing something simple.
Nested Content Returns NULL
Hi
I'm at a loss as to why this does not work, I'm using Umbraco version 7.6.5 assembly: 1.0.6428.37121 with Nested Content 0.5.0, I have read the pdf file for instruction and also many websites and I still cannot get it to work.
My doctype for the blue print is headerImageBodyTextAndLink, I add this to the doctype ParentDocType, but when I run page and put break point on:
It always returns null, Am I missing something simple.
Any help would be appreciated on this
George
Hi George,
Did you get the solution?
Kindly share the solutions if you found.
Thanks
Hi George,
Have you tried viewing the raw value of the property you have set? This may lead you to the issue.
Also, you could try getting just IPublishedContent
Instead of the IEnumerable<> depending if you have allowed multiple in your property.
Matt
If anyone runs into this in the future this happened to me because I added a property with the id "key".
is working on a reply...