Hi Miroslav,
I've created a custom Document type in Kentico 6 and I want to show documents attachments within a repeater but only thing that I get is a div element with Pager class.
I followed up http://devnet.kentico.com/docs/6_0/devguide/index.html?handling_attachments_in_transformations.htm
This is the transformation for documents (which it works well):
<%@ Register Src="~/CMSInlineControls/DocumentAttachments.ascx" TagName="DocumentAttachments" TagPrefix="cms" %>
<article>
<div class="article-teaser">
<img alt="cover placeholder" src="<%# GetFileUrl("ThumbnailImage") %>" />
<h2><%# Eval("Title") %></h2>
<ul>
<cms:DocumentAttachments ID="ucDocAttachments" runat="server" TransformationName="custom.PrintMaterial.Attachments" Path='<%# Eval("/Other-Resources/Print-Materials") %>' />
</ul>
</div>
</article>
With following transformation (custom.PrintMaterial.Attachments) I want to put all attachments into a list:
<li>
<a target="_blank" href="<%# GetAbsoluteUrl(GetAttachmentUrl(Eval("AttachmentName"), Eval("/Other-Resources/Print-Materials")), EvalInteger("AttachmentSiteID")) %>">
<%# Eval("AttachmentName",true) %>
</a>
</li>
can you please tell me what I'm doing wrong? What I'm trying is to show all the documents, each one with a list of his attachments...
Thanks,
Andrei