Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Product document attachment View modes: 
User avatar
Member
Member
manuel-initiostudio - 9/30/2013 5:16:17 AM
   
Product document attachment
Hi,

I have a Products page where the products are listed using a Product Datalist and in everyone of the products listed I need to add a link to the product's pdf.

I have tried to get the attached document in the transformation, with no success. As well I have used the Document Attachment Web Part, but it only works fine on the proper Product page.

Could someone help me with that?

Thanks in advance,
Manuel

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 10/4/2013 11:46:02 AM
   
RE:Product document attachment
You could add a field onto the ecommerce.sku system table. The field could be set to a upload file or file selector(this could support multiple files as well). This would then save your file and associate it with the product that you create. You should be able to access this also in the transformation as well.

User avatar
Kentico Support
Kentico Support
kentico_romank - 10/15/2013 2:23:21 AM
   
RE:Product document attachment
Hi,

Another approach could be to use repeater instead of datalist, or do you need to use Product datalist web part for showing the products? If it is possible for you to use repeater, you can put to the transformation following code, which will render the attachments of the product document:
<%@ Register Src="~/CMSModules/Content/Controls/Attachments/DocumentAttachments/DocumentAttachments.ascx" TagName="DocumentAttachments" TagPrefix="cms" %>

<cms:DocumentAttachments ID="documentAttachments" runat="server" TransformationName=" cms.root.attachmentLightboxDetail " Path='<%# Eval("NodeAliasPath") %>' />

Best Regards,
Roman Konicek