ASPX templates
Version 5.x > ASPX templates > Related documents (pdf and videos) View modes: 
User avatar
Member
Member
ioanamsandu-yahoo - 12/5/2011 5:11:13 AM
   
Related documents (pdf and videos)
Hello,
I would like to have as related documents some pdfs and video files stored in a folder inside the cms. What is the best option to list them? A repeater in code behind (and if you could give me an example please)? Or should I use a repeater in CMSDesk? I also want to list the icons for the pdfs and the video files.

Thank in advance

User avatar
Member
Member
kentico_michal - 12/5/2011 7:07:29 AM
   
RE:Related documents (pdf and videos)
Hello,

You can find inspiration in the Related documents web part (~\CMSWebParts\Viewers\Documents\relateddocuments.ascx) that uses the standard CMSRepeater web part and in the code behind it uses the TreeHelper.GetDocuments method to get a dataset of related documents.

Best regards,
Michal Legen