Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Regarding the file attachment field View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/24/2012 5:31:06 AM
   
Regarding the file attachment field
Hi,

I have added a field file attachement in document type.. I used in transformation :

<%# GetFileUrl("FileAttachment") %> to get the path of file, it display the following path on the pages.

It is not displaying the path of the image "Addison-Heights" this is the name of the page.
/getattachment/00000000-0000-0000-0000-000000000000/Addison-Heights.aspx

please guide me how to display the images with attachment image gallery same as in product section in the hosted trial website product section..

Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/25/2012 2:52:42 AM
   
RE:Regarding the file attachment field
Hello,

You have filled probably the wrong name of the file attachment field in the GetFileUrl method. The name of this field and the argument in this function have to correspond with each other. Here is an example:

If you define the field of a file attachment as it is shown below:

User image

You need to type this Column name into the GetFileUrl method:

<%# GetFileUrl("file") %>


Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/25/2012 6:04:40 AM
   
RE:Regarding the file attachment field
Hi Jan,

Thanks for reply..

I did as you explain above:

it is returning the following path

/getattachment/8021bfda-f6a6-4db9-ac6f-095c6b5ca46d/New-document.aspx


ok

Can you please guide me how can add images in the attacgment image gallery.. I did not find in the trial corporate website porduct section..

There are different images for each product to view with lightbox effect. But no help how to add images there.


Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/25/2012 6:36:49 AM
   
RE:Regarding the file attachment field
Hello,

That is a different thing. If you want to display images for a document (product) with a lightbox effect through a attachment image gallery web part, you need to upload images as attachements in the Attachments section under the Properties tab of the document (product). And then you can place the attachment image gallery web part on that document (template) and set its properties to:

Path: ./%
Transformation: CMS.Root.AttachmentLightbox
Selected item transformation: CMS.Root.AttachmentLightboxDetail


Best regards,
Jan Hermann