Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Advice needed document downloads View modes: 
User avatar
Member
Member
Ryan - 1/27/2014 9:48:18 AM
   
Advice needed document downloads

Hi,
I'm working on my first kentico website, As part of the design of the main page as per its design
I have a "Key Puclications" list of downloadable(public permission) documents. I would like to tie this into the Kentico document library or simular control. but I'm unsure how to display this as shown in the image below... in kentico as a widget or webpart. I have the css and html made from the image design but which Webpart/template should i use ? and what do i need to edit/do to get it similar to the image provided below.

User image
Thanks In advance

User avatar
Member
Member
vcarter - 1/27/2014 10:19:51 AM
   
RE:Advice needed document downloads
If the documents are part of your content tree, you can use a basic repeater webpart and set the path to the parent of the required documents. Then you can create a display transformation something like:
<li><img src="downloadImg.jpeg" alt="" /><%# Eval("PublicationTitle") %><br /><%# Eval("PublicationDate") %><br /><a href="<%# Eval("PublicationFile") %>") %">Download</a></li>

Use a <ul> and a </ul> in the content before/after of the webpart. Make your path something like /Publications/%(this gets all children of the Publications section).

You can also put you container html is the content before/after.

Does this help?

User avatar
Member
Member
Ryan - 1/27/2014 10:40:21 AM
   
RE:Advice needed document downloads
This was helpfull but how would i control the permissions ie only show some documents to the public from here ?

User avatar
Member
Member
vcarter - 1/27/2014 11:23:46 AM
   
RE:Advice needed document downloads
There are a couple of ways I can think to do this off the top of my head.

The easiest I think, would be to move your secured documents to another folder/parent node. You could also tag the documents as public/private by adding a field to the document type, then add a where condition to the repeater that only looked for documents that matched the desired privacy state. This would also allow you to duplicate this solution for private documents.