Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Lightbox wiht Auto-Resize and Window Fit View modes: 
User avatar
Member
Member
benito@liquidvision.com - 6/3/2010 8:19:01 PM
   
Lightbox wiht Auto-Resize and Window Fit
Hi Kentico,

Is there any change to the lightbox webpart that will support these features:

* the pop-up image will fit according to user's browser size
* the pop-up image will resize as the browser is resized and maximize and vise-versa

Please check this out: http://www.bmwmoal.com/pictures/towncreek.html

I need this feature so users can upload high-res images without limiting the their size but the preview can be controlled. Here's the link to my website: http://hin.com.au/Resources/Image---Stone-Fruit-%28Schneider-Archives%29

Thanks,
Benito



User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/9/2010 5:21:05 AM
   
RE:Lightbox wiht Auto-Resize and Window Fit
Hi Benito,

KenticoCMS currently don't offer this by default (e.g. like some setting for the LightBox webpart). It is basically a matter of styles and appropriate javascripts behind that functionality.
I'm discussing this with developers if it can be added by some custom modification to our Lightbox integration.
It may take some time, thank you in advance for your patience.

Regards,
Zdenek

User avatar
Member
Member
benito@liquidvision.com - 6/9/2010 7:22:51 PM
   
RE:Lightbox wiht Auto-Resize and Window Fit
Hi Zdenek,

Thanks for the reply. Actually, we've sorted it out. We've modified the lightbox.js, lightbox.css and scriptacolous.js. All working good now.

Cheers,
Benito

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/11/2010 4:38:46 AM
   
RE:Lightbox wiht Auto-Resize and Window Fit
Hi Benito,

Thank you for information, good to hear.
Basically, we would suggest the same... appropriate modification to lightbox.js and probably the related files.
One question though - just being curious -- have you find an inspiration in any article/blogpost/forum over the web, or is it completely your own modification code?

Thanks and regards,
Zdenek

User avatar
Member
Member
benito@liquidvision.com - 6/11/2010 6:50:31 AM
   
RE:Lightbox wiht Auto-Resize and Window Fit
Hi Zdenek,

This link helped me a lot.
http://blog.hma-info.de/2008/04/09/latest-lightbox-v2-with-automatic-resizing/

Then we've just figured out to tweak the scriptacolous.js and prototype.js as well but not much. Without this mod, the solution on the above link won't work.

Cheers,
Benito

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/11/2010 9:58:54 AM
   
RE:Lightbox wiht Auto-Resize and Window Fit
Hi Benito,

Thank you for sharing the information with us.

Cheers,
Zdenek