How to add/merge two DynamicPublishedContentList ?
Hi,
I am new Umbraco and I was trying something but couldn't able to figure it out. Can anyone please have a light on it ?
I have created two nodes (1193,1311) which allows users to upload videos. One set of users don't see the other node videos. But however for displaying videos on the front end page, I would like to merge the two nodes with their content and iterate on the list and display them. How do I merge two nodes ? Here is the code I am trying..
How to add/merge two DynamicPublishedContentList ?
Hi, I am new Umbraco and I was trying something but couldn't able to figure it out. Can anyone please have a light on it ?
I have created two nodes (1193,1311) which allows users to upload videos. One set of users don't see the other node videos. But however for displaying videos on the front end page, I would like to merge the two nodes with their content and iterate on the list and display them. How do I merge two nodes ? Here is the code I am trying..
Hi Venkatesh
Would
do the trick?
regards
Marc
Hi Marc,
Here node is DynamicPublishedContentList and there is no Concat() for that object.
Hi Ventkatesh
Yes, but DynamicPublishedContentList implements
IEnumerable<DynamicPublishedContent>
So as long as you reference the System.Linq namespace, you should be able to use the Concat extension method...
@using System.Linq;
regards
Marc
is working on a reply...