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 nested content called "CarDetails".If I retrieve data in custom surface controller,
var nestedContent = content.GetValue<IEnumerable<IPublishedElement>>("CarDetails");
is always null. How I get?and loop them by;
foreach (var item in tempNestedContent) { string temp = @feature.GetProperty("boatTitle").Value(); }
Hi. This should give you a collection of nested content item to iterate through:
https://our.umbraco.com/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Nested-Content/#rendering-nested-content
Best of luck to you!
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
Nested content is empty
Hi I have a nested content called "CarDetails".If I retrieve data in custom surface controller,
is always null. How I get?and loop them by;
Hi. This should give you a collection of nested content item to iterate through:
https://our.umbraco.com/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Nested-Content/#rendering-nested-content
Best of luck to you!
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.