Open raskolnikoov opened 10 years ago
I've build my own fix for this:
//Fixes images not rendering after solution build public static EPiImageGalleryImageCollection GetImageList(PageReference pageLink, string property) { try { var page = EPiServer.DataFactory.Instance.GetPage(pageLink); EPiImageGalleryProperty galleryProperty = page.Property[property] as EPiImageGalleryProperty; return galleryProperty == null ? null : galleryProperty.ConvertXhtmLtoImageCollection(galleryProperty.XhtmlString.ToString()); } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
Thanks, great find. I will update the code with your fixes, appreciate it
I've noticed that all images in a list (EPiImageGalleryImageCollection) are empty after a project is build. But they are still visible in the EPiServer editor. If the page is re-published the images show up correctly on the site.
Any idea?