Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > displaying attachments in a repeater item View modes: 
User avatar
Member
Member
Jeffrey H. - 10/4/2010 3:50:31 PM
   
displaying attachments in a repeater item
Ok, I searched the Kentico site and documentation, and I found some code to display a document's attachments within a transformation. The only problem is that I cannot get anything to display.

I put the document attachments webpart and set to display with my selecteditem transformation and did get attachments to display there, but I need them to display in my main repeater.

Can someone take a look at my transformation and give me a push in what I have done wrong?

Thanks,

Jeffrey


<%@ Register Src="~/CMSInlineControls/DocumentAttachments.ascx" TagName="DocumentAttachments" TagPrefix="cms" %>
<table>
<tr>
<td>File Attachment(s):</td>
<td>
<cms:DocumentAttachments ID="ucDocAttachments" runat="server" Path='<%# Eval("NodeAliasPath") %>' />
</td>
</tr>
</table>

User avatar
Member
Member
kentico_michal - 10/8/2010 6:42:54 AM
   
RE:displaying attachments in a repeater item
Hi,

Coud you please specify how are you storing document attachment?

Please keep in mind that Document attachement control displays unsorted attachments (http://devnet.kentico.com/docs/devguide/index.html?attachments_example_1.htm).

Anyway, your transformation seems to be correct.

Best regards,
Michal Legen