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 am having child list in my page , in that child list multi node picker is there i need to get the list in each item.
i am getting the out put as
System.Collections.Generic.List1[Umbraco.Core.Models.IPublishedContent] System.Collections.Generic.List1[Umbraco.Core.Models.IPublishedContent] System.Collections.Generic.List`1[Umbraco.Core.Models.IPublishedContent]
1[Umbraco.Core.Models.IPublishedContent] System.Collections.Generic.List
i need the multi node picker list in each item ???
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{ var selection = Model.Content.Children.Where(x => x.IsVisible()).ToArray(); }
@if (selection.Length > 0) {
foreach (var item in selection) {
@item["galllsitdata"] <br/> }
}
Hi Gani
Use this code:
foreach (var item in selection) { foreach (var childItem in item.GetPropertyValue<IEnumerable<IPublishedContent>>("galllsitdata")) { @childItem.Name<br /> } }
Did you solve the issue?
Please, share with the community
/Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
multi node tree
hi , i am having child list in my page , in that child list multi node picker is there i need to get the list in each item.
i am getting the out put as
System.Collections.Generic.List
1[Umbraco.Core.Models.IPublishedContent] System.Collections.Generic.List
1[Umbraco.Core.Models.IPublishedContent] System.Collections.Generic.List`1[Umbraco.Core.Models.IPublishedContent]i need the multi node picker list in each item ???
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{ var selection = Model.Content.Children.Where(x => x.IsVisible()).ToArray(); }
@if (selection.Length > 0) {
foreach (var item in selection) {
}
Hi Gani
Use this code:
Hi Gani
Did you solve the issue?
Please, share with the community
/Alex
is working on a reply...