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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.