Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I have a currentPage that returns a currentpage like this
IPublishedContent currentPage = UmbracoContext.Content.GetById(1164);
The currentPage has a property called ProductList. It is a collection of nested objects. How to i get those object?
I got the answer from the documentation.
https://our.umbraco.com/documentation/reference/querying/ipublishedcontent/Properties/#modelvaluetstring
IEnumerable<object> y = currentPage.Value<IEnumerable<object>>("ProductList");
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to get the collection of nested objects?
Hi
I have a currentPage that returns a currentpage like this
The currentPage has a property called ProductList. It is a collection of nested objects. How to i get those object?
I got the answer from the documentation.
https://our.umbraco.com/documentation/reference/querying/ipublishedcontent/Properties/#modelvaluetstring
is working on a reply...