Portal Engine
Version 3.x > Portal Engine > Get attachment info in transformation View modes: 
User avatar
Member
Member
ralph - 3/24/2008 7:12:31 PM
   
Get attachment info in transformation
Hi

I created a custom document type with an attachment.

Now I would like to display some of the attachment properties, like extension of file size, that can be found in the CMS_Attachment table in a transformation.

However it seems that only data from the custom table and CMS_Document are available.

Do I need to write a custom Function for that?

Thanks
ralph

User avatar
Member
Member
kentico_vitaja - 3/25/2008 11:53:57 AM
   
RE:Get attachment info in transformation
Hi Ralph,

That is correct - you need to use your custom function as described in documentation: http://kentico.com/docs/devguide/adding_custom_functions_to_tra.htm
For retrieving attachment properties you need to specify AttachmentGUID from CMS_Attachment.

Best regards,
Vita Janecek