Querying Image Library returns two copies of image
We have a custom image slideshow on our site that reads the images out of an image library. We are currently getting two copies of the images rotating in the slide show. One will be 1.jpg the other will be 1.jpg?Status=Master.
My investigations on the forums leads me to believe that this is due to workflow. I tried modifying the query that pulls the image to:
IList allImages = libManager.GetImages().Where(i => i.Album == album && i.Status != Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live).OrderBy(o => o.Title).ToList();
Jon,
Try this for the status:
i.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live
Actually, what I posted worked perfectly, however one needs to add it to the correct usercontrol in order for it to show results ;)
Hmm... but still you are not showing the 'live' version of your images. Your function is loading all images except the live versions :)
Regards,
Daniel