ASPX templates
Version 5.x > ASPX templates > Image Url and Shadowbox View modes: 
User avatar
Member
Member
lwhittemore-emh - 6/10/2011 9:48:08 AM
   
Image Url and Shadowbox
I am building a gallery using shadowbox and am having an issue. shadowbox gets the image dimensions from an image file but it cannot from the image file code (filename.aspx) that kentico generates because it doesn't understand the aspx extension. is there a way to get kentico to give an actual jpg file? if not, how can I get the image height and width in a transformation?

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/11/2011 2:19:16 AM
   
RE:Image Url and Shadowbox
Hi,

There is a way to get the actual jpg file.

You need to configure extensionless and then set URL extensions for the image (in Properties of document - URLs tab).

You will need to configure Files friendly URL extensions similar way as Friendly URL extensions:
http://devnet.kentico.com/docs/devguide/configuration_of_custom_url_extensions.htm

You can leave the field empty, configure extensionless and on document level set .jpg file.

Best regards,
Ivana Tomanickova