Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > downloadable file View modes: 
User avatar
Member
Member
eagleag - 7/11/2012 5:29:40 AM
   
downloadable file
Hi,
I'm trying to create a downloadable file.
example:
document type with a field:
Attribute type: File
Form control: Direct uploader


I've uploaded a .zip file and now in transformation I would like to create a link that onlick will start download.

I've tried: getfie.aspx?guid, /getattachment/ and some other ways but nothing created link that allowed to download zip.

how can I solve this?

Thanks :)




User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/14/2012 1:55:05 PM
   
RE:downloadable file
Hi,

in case you are using a repeater web part which displays CMS.File document type you can use in your transformation following code and link to file will be generated:


<a href='<%# GetDocumentUrl() %>' title='<%#Eval("NewsTitle")%>'> <%# Eval("FileName")%></a>


Best regards,
Ivana Tomanickova