I have a library called Slides that contains 5 images. I then have a nested folder that contains 2 images. I am looking for the best way to display only the 5 images when a user selects the Slides library via my widget designer. Right now this is what I have that works, but I am guessing there is a better way.
.AlbumId != Guid.Empty)
var manager = LibrariesManager.GetManager();
var album = manager.FindFolderById(model.AlbumId);
model.Images = ((Telerik.Sitefinity.Libraries.Model.Album)album).Images().Where(i => i.FolderId ==
&& i.Status == ContentLifecycleStatus.Live);
model.Images = manager.GetImages().Where(i => i.FolderId == album.Id && i.Status == ContentLifecycleStatus.Live);
By default just using the Images() extension method for Albums will return all images nested or not that belong to said library. (i.e. I was getting 7 back).