ASPX templates
Version 2.x > ASPX templates > Document Repeater View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
luke@syndicut.com - 5/31/2007 1:34:34 PM
   
Document Repeater
Hi,

I am trying to create some simple page navigation using a repeater:
<asp:Repeater ID="Navigation" runat="server">
<ItemTemplate>
<a href="<%# DataBinder.Eval(Container, "DataItem.DocumentUrlPath")%>">
<%# DataBinder.Eval(Container, "DataItem.DocumentName")%></a>
</ItemTemplate>
</asp:Repeater>

This is working fine but what property do i use if i want a link to that document ? (currently using DocumentUrlPath but this is not corect)

Thanks

Luke

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/23/2007 12:42:47 PM
   
RE:Document Repeater
Hi,
Could you please try to use the transformation "<%# GetDocumentUrl() %>" as described for example in Site Manager -> Development -> Document types -> CMS.News -> Transformations -> Preview.

Please let me know if I can be of ane further help.

Best Regards,
Juraj Ondrus