It's hard for me to explain this, but I hope some code helps:
var softChannels = channels.ByPath("/software/").Children.Where(c => c.StateProperties.IsActive); var tmpGames = new List<MyCms.Content.Games.Game>();
what I want to do, if g.GamingProperties.Software contains one of the softChannels Guides, then add it. maybe a great solution would be better ... any suggestions?
ps I know that the line does not work, I put the code there just to easily understand what I need.
EDIT: I think I decided:
var softChannels = channels.ByPath("/software/").Children.Where(c => c.StateProperties.IsActive).Select(c => c.Guid); var tmpGames = new List<MyCms.Content.Games.Game>();
if anyone sees something wrong with this, please let me know.
source share