Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Document attachments webpart View modes: 
User avatar
Member
Member
John - 10/28/2010 6:32:04 AM
   
Document attachments webpart
Hello I would like to allow files being attached to pages within kentico (word, excel docs etc) to be output to the bottom of its web page in a table for site users to download.

The document attachments webpart does this, but its too basic. The file link and icon work well, but I also need a description next to the file so users know what they're download. Also being able to give the file a friendly name instead of outputting the file name directly would be most useful.

Could anyone please let me know if the document attachments webpart has this functionality or if there is another method in Kentico to achieve what I'm after?
Or is nothing like this possible (which I'd be quite surprised) and would have to build my own web part?

Many thanks
John

User avatar
Member
Member
kentico_michal - 11/4/2010 8:55:48 AM
   
RE:Document attachments webpart
Hi,

Regrettably, this is not a good way if you want to display some additional information related to attachment. Grouped attachments do not provide option to store some additional information or icon.

I would recommend you to use approach based on custom document type to store one attachment where you could also create custom fields according to your needs (for example field of type DirectUploader to upload one attachment, field that would allow you to upload some icon, field to insert some additional description…).
More information about defining custom document can be found at http://devnet.kentico.com/docs/devguide/index.html?defining_a_new_document_type.htm.

You could place these custom attachment documents under document they are related to and display them using for example Repeater web part with appropriate transformation (http://devnet.kentico.com/docs/devguide/index.html?writing_transformations.htm).


Best regards,
Michal Legen