Portal Engine
Version 3.x > Portal Engine > GetImage in Transformation View modes: 
User avatar
Member
Member
imuir-amplifystudios - 12/11/2008 2:32:42 PM
   
GetImage in Transformation
I'm now working on my 3rd Kentico site and this has been an issue with everyone.

Why doesn't the GetImage function work within a transformation? I always get a broken image with a src that points to getattachement with some guid after it.

Also, Is there a way to force an transformation to update? While debugging this problem, I've noticed that when I make changes to the transformation they arent' apparent on the site until I go into the SiteManager and restart the application.

User avatar
Member
Member
imuir-amplifystudios - 12/11/2008 2:38:18 PM
   
RE:GetImage in Transformation
FYI, if I replace getattachment with getfile it seems to work fine.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/15/2008 5:01:46 AM
   
RE:GetImage in Transformation
Hi,

GetImage works with field of attribute type "File" and field type "Upload file".

If you are using Text/File selection, you need to use similar functionality as described here - http://devnet.kentico.com/Knowledge-Base/API-and-Internals/How-to-display-link-to-a-file-or-document-without-.aspx.

Moreover, you can find more methods that you can use in transformations in class CMS.Controls.CMSAbstractTransformation.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
stephen.turley-terradon - 6/20/2012 6:34:59 PM
   
RE:GetImage in Transformation
This does not work for me either. version 6.0.32

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 6/25/2012 3:40:12 AM
   
RE:GetImage in Transformation
Hello,

Could you please let me know, how you are saving the given image? Please also describe the field type you are using and the approach you've applied. It would also help to have the live URL of the page, where you are trying to display the image, so I can test this by myself.

Best regards,
Boris Pocatko

User avatar
Member
Member
stephen.turley-terradon - 6/25/2012 7:02:00 AM
   
RE:GetImage in Transformation
I've submitted a ticket [Ticket:246615]