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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...