ASPX templates
Version 5.x > ASPX templates > Get CMS.Job Attachment Filename in Transformation View modes: 
User avatar
Member
Member
eric.rovtar - 1/28/2011 2:11:09 PM
   
Get CMS.Job Attachment Filename in Transformation
I'm stumped!

I know this must be possible since I can see the filename in the Form section on CMS Desk, but what do I add to the transformation to display the Job Attachment's filename? <%# Eval("JobAttachement") %> renders the GUID.

Thanks!

-Eric

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/31/2011 6:48:48 AM
   
RE:Get CMS.Job Attachment Filename in Transformation
Hello,

To access attachment information you will need to create a custom function. For more information please check this Knowledge Base article. After you aquired the Attachment info (CMS.FileManager.AttachmentInfo) you will be able to access all the properties you need. For more information please check our API reference.

Best regards,
Boris Pocatko