Portal Engine
Version 2.x > Portal Engine > Kentico v2.0 Showing images View modes: 
User avatar
Member
Member
jjones - 10/30/2006 5:00:23 PM
   
Kentico v2.0 Showing images
I have a transformation for a document type (businessProfile) in which I would like to show an image.
The businessProfile document type has a property which is an 'image selector' field.
The image selector field puts a guid in the database into the column businessprofile.CompanyLogo - e.g. ac45d3fe-0600-467e-a3b2-468d552ab458.
This is actually the guid for the NodeId of the image and not an attachment guid.
Can you tell me the code to use in the transformation.

I have tried GetFileUrl("CompanyLogo") but this tries to use the guid of the document and not the attachment. I may be missing something obvious.

Kind Regards,
John
AND

User avatar
Member
Member
mateo - 4/28/2007 5:23:42 AM
   
RE:Kentico v2.0 Showing images
use GetImage

User avatar
Member
Member
marie - 5/1/2007 4:20:45 PM
   
RE:Kentico v2.0 Showing images
We ran into the same issue. Here is how we solved it:

GetFileUrl("ProductPhoto").Replace("getattachment","getfile")

Hope this helps out.

Marie.