Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Lightbox with new doc type View modes: 
User avatar
Member
Member
eagleag - 3/3/2010 5:32:11 AM
   
Lightbox with new doc type
Hi,
I created a new document type that has 2 fields of type FILE.
I'm trying to use the lightbox webpart with this new doc type but cant seem to get it working.

<a href="<%# GetDocumentUrl() %>" rel="lightbox[group]" rev="<%# Eval("NodeAliasPath") %>" title="<%# Eval("FileDescription", true) %>"><img src="<%# GetFileUrl("FileAttachment") %>?maxsidesize=150" alt="<%# Eval("FileName", true) %>" /></a>

I tried switching the information the transformation gets:
<%# GetFileUrl("Example") %> and some others.

How can I use LIGHTBOX webpart with new doc type that stores images in fields.
Images are not in site tree.

THANKS

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/4/2010 7:52:50 AM
   
RE:Lightbox with new doc type
Hi,

you could use: <%# GetFileUrl("<attribute name>") %>. Please note that the lightbox works only for one image for one document.

If you want to display all attachments of one document you may use the Attachments image gallery web part. Please see here: http://devnet.kentico.com/docs/devguide/attachments_web_parts.htm for more details.


Best regards,
Helena Grulichova

User avatar
Member
Member
eagleag - 3/7/2010 2:52:12 AM
   
RE:Lightbox with new doc type
Hi,

still not working.

This is what I have:
Using Lightbox web part->
Selected item transformation:

<img src="<%# GetFileUrl("lighboxImg") %>" alt="<%# Eval("FileName") %>" title="<%# Eval("FileName") %>" />


the code renders like this:

/getattachment/00000000-0000-0000-0000-000000000000/Almondie.aspx


When go to the image throw cmsde3sk and get its url and hard code it into the transformation it works:

http://localhost:1469/CMSPages/GetFile.aspx?guid=ebcd53cf-474d-48b7-b4e4-97cfa62a793f


Just reminding that all the images for this doc type are stored in the doc type itself as FILE type and do not show up in site tree.


Your help is much appreciated :)


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/9/2010 5:38:55 AM
   
RE:Lightbox with new doc type
Hi,

do you specify explicitly the Document types in the Lightbox properties? Unless so, please do it and test once again.

Does it help?

Best regards,
Helena Grulichova

User avatar
Member
Member
ccf-iostreamsolutions - 2/22/2011 10:58:47 AM
   
RE:Lightbox with new doc type
Was this ever resolved? I'm having similar issues. I can't pull the pictures in through the lightbox web part so I included it and formatted the link similarly to how the lightbox transformation does, but the image doesn't load into the lightbox. If I remove the lightbox web part and click on the link it goes to the picture.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/28/2011 8:52:22 AM
   
RE:Lightbox with new doc type
Hello,


did you specify the displayed document types explicitly in the lightbox transformation?

How does it behave? Can you see the previews? If so, what happens if you click on the preview?


Best regards,
Helena Grulichova

User avatar
Member
Member
shafqma-yahoo - 3/16/2011 2:03:58 AM
   
RE:Lightbox with new doc type
I am having a same kind of problem, if i just use 'Light Box' and press image it shows image in explorer not in light box. Later, i manually added the light box in my code and tried it now light box gets up but it give me an error saying 'The requested content can't be located' .

Can any body have idea what this error is ?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/23/2011 4:41:39 PM
   
RE:Lightbox with new doc type
Hello,


I am not sure how it works on your site. Do you display the CMS.File document or a custom document type? If it is CMS.File, have you added a custom field?

Can you see the image previews?

What does it mean "it shows image in explorer not in light box"? Does it display the lightbox popup window where should be the image? Can you post any screenshots how it looks like?

Are you able to display the images in any other listing web part? (For example: Repeater)

Is the text of that error message exact?


Best regards,
Helena Grulichova