kentico_helenag
-
7/20/2010 4:12:25 AM
RE:Document Attachment Control
Hi,
The code from knowledge base works for single attachments but not for multiple attachments (in one document type field). We called the multiple attachments as "Grouped attachments" (http://devnet.kentico.com/docs/devguide/attachments_example_2.htm). The inner structure of single/grouped attachments are different. That is why the code mentioned in your report does not work.
If you need to get the grouped attachments in code you can use Document attachments web part (http://devnet.kentico.com/docs/webparts/KenticoCMS_WebParts.htm#_67155978-183c-46ca-9eed-52d6dd609480) or Attachments data source (http://devnet.kentico.com/docs/webparts/KenticoCMS_WebParts.htm#_73c2ba18-6e65-424e-95c0-2a2fc4bab8f7).
You can register them in your code and use the output.
Best regards, Helena Grulichova
|