Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Show AttachmentCustomData On CMS.Root.AttachmentList View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
joe@jmawebtechnologies.com - 8/2/2012 2:36:02 PM
   
Show AttachmentCustomData On CMS.Root.AttachmentList
Hi,

How do I show a custom data field on a transformation file?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/3/2012 1:42:08 AM
   
RE:Show AttachmentCustomData On CMS.Root.AttachmentList
Hi,

Where is the custom data field? Where are the data stored? Have you tried using the Eval function with the field/column name as a parameter?

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
joe@jmawebtechnologies.com - 8/3/2012 10:24:41 AM
   
RE:Show AttachmentCustomData On CMS.Root.AttachmentList
Hi,

It is in the AttachmentCustomDataField:

<customdata><attachmentlanguage>Spanish</attachmentlanguage></customdata>

I tried

<%# Eval("attachmentlanguage") %>

I see no result. I am using the AttachmentList transformation.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/5/2012 8:51:28 AM
   
RE:Show AttachmentCustomData On CMS.Root.AttachmentList
Hi,

What I meant is that what kind of attachment are you working with? In the CMS_Attachment table are stored data about the CMS.File document type, as well as about the media library files and document attachments - but handling each of them is different.

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
joe@jmawebtechnologies.com - 8/5/2012 3:28:45 PM
   
RE:Show AttachmentCustomData On CMS.Root.AttachmentList
Hi,

I am using a document attachment. It is a .txt file.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/8/2012 2:19:40 AM
   
RE:Show AttachmentCustomData On CMS.Root.AttachmentList
Hi,

Have you tried using the AttachmentCustomData column name in the Eval function?
Are you using unsorted or grouped attachments?

Best regards,
Juraj Ondrus