Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > using light box in transformation??? View modes: 
User avatar
Member
Member
eagleag - 12/21/2009 7:14:52 AM
   
using light box in transformation???
Hi,
I have a documnet type with transformation which I created.
I would like to hve the option of using the light box webpart for images in this doc type.

The page is created by the transformation (no working on DESIGN tab).

How can I use a webpart if I cant add it into a transformation?

or, what is the best way to solve this?

THANKS :)


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/21/2009 9:57:57 AM
   
RE:using light box in transformation???
Hi,

The lightbox is not supported inside the transformation as nested viewer (only repeater and datalist are).

You could place the lightbox web part on the parent where you specify the viewer of your documents. It could have the Show for document types property so that the web part would shows up only on your documents.

Then you could use the relative path – for example: ./* which displays all images under the current document. So if you place the images underneath each document like:
- document1
- - image1
- - image2
- document2
Best regards,
Helena Grulichova

User avatar
Member
Member
eagleag - 12/21/2009 10:13:41 AM
   
RE:using light box in transformation???
You could place the lightbox web part on the parent where you specify the viewer of your documents

You mean, I should just add the webpart to the parent page that I need the light box working on?
then in my transformation what code do I need to add around the images?
or, How do I acutally tell the transformation to get the images from "under" the document and make them thumbnails in lightbox webpart?

Thank you so much. tour help is very much aprreciated.
I really need to finish this issue up soon.

THANKS :)



User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/22/2009 7:52:03 AM
   
RE:using light box in transformation???
Hello,

the Lightbox web part could work separately from Document viewer (the transformation for documents would not contain any code relates to images). The example of lightbox transformations is here: http://devnet.kentico.com/docs/devguide/image_gallery_transformations.htm

The Lightbox web part could have the mentioned path (Path property of web part). It means it will display all documents under the current document. Here is more information about the path expressions: http://devnet.kentico.com/docs/devguide/index.html

This approach will work if you want to display the images when you view the document details (Selected item transformation is used).

Best regards,
Helena Grulichova