Installation and deployment
Version 7.x > Installation and deployment > broken images in image gallery View modes: 
User avatar
Member
Member
timmcqueen-me - 1/8/2014 6:56:08 PM
   
broken images in image gallery
Hi All
I've created an image gallery.
However, when I'm in the backend and look at the preview of the webpage the images display. But when I look at the page on the front end the images are all just broken images.
Do I need to coonfigure the web part in a specific way in order for the images to show.
Looking at the source code of the front end image gallery, the images aren't being referred to properly ie instead of refering to an image file, the value of img src is just junk code. Here's a sample: 596e15f3a169185d7560912cf6686f4e4ffd440a63663cea55710ec

thanks
Tim

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/9/2014 7:44:16 AM
   
RE:broken images in image gallery
What is the image/file type you are using for the webpart? It might be something as simple as modifying your transformation to use the right method.

<%# GetImage() %> will get the full < img > tag code with image url from a GUID.
<%# GetImageByURL() %> will get the full < img > tag code from a URL.

My guess is you are using the latter of the two and its simply returning the GUID.

User avatar
Member
Member
timmcqueen-me - 1/9/2014 4:16:43 PM
   
RE:broken images in image gallery
Hi Frog
thanks for your help
the image file type is jpg. This is copied from the properties screen:

Document name: IMG_6025.JPG
Type: File

This is from the source code of the front end:
<img src="/cmsctx/pv/timothymcqueen/culture/en-AU/wg/42636673-c5bc-4304-b9de-6607e7ffda96/h/c853d554596e15f3a169185d7560912cf6686f4e4ffd440a63663cea55710ec1/-/getattachment/a1cbbdd3-32c8-4c1a-9d7e-08f6ae893923/IMG_6025-JPG?uh=87458cf986c046f3f84071f1669f70e3c67aad79bf11962beabcfdc3f16700ae?maxsidesize=150" alt="IMG_6025.JPG" /></a>

Does this info help diagnose the problem?
thanks again
Tim

User avatar
Member
Member
timmcqueen-me - 1/9/2014 5:25:48 PM
   
RE:broken images in image gallery
Actually don't worry - I worked out the problem
I was previewing the page via the preview URL instead of looking at the proper URL
Once I looked using the proper URL the images worked just fine
thanks again