var kunstroot = Umbraco.TypedContent(2526).Children.Where("Visible").ToList();
var kunstrootarkiv = Umbraco.TypedContent(4457).Children.Where("Visible").ToList();
var mergedList = kunstroot.Concat(kunstrootarkiv);
Probably simplest way would be to convert to a list and then use AddRange like so:
var kunstroot = Umbraco.TypedContent(2526).Children.Where("Visible").ToList();
var kunstrootarkiv = Umbraco.TypedContent(4457).Children.Where("Visible");
kunstroot.AddRange(kunstrootarkiv);
listing child nodes from multiple sources
Im sure i have done this before, but im lost as how to do it now. So a bit of help would be appreciated :)
I have 2 nodes, and want to list the children from both in one joined list.
I need help to merge the to vars, so i can do the foreach. Thanks
Hi Claushingebjerg
Try these lines:
Thanks,
Alex
Probably simplest way would be to convert to a list and then use AddRange like so:
Thanks guys, works like a charm :)
You are welcome!!!! Glad to help.
is working on a reply...