Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How to get lightbox working with SS?


2 Posts   994 Views


2 April 2010 at 1:53pm Community Member, 137 Posts

Hi all,

I'm trying to incorporate lightbox into the SS cms. Just wondering what is th best best to do such a thing. Do I create a css class, how does it reduce the size of a full image for thumbnail preview etc???

First time trying ot setup a module like this for SS.

Any help or advice would be great


2 April 2010 at 4:46pm 4085 Posts

I think it's more of a question that can be answered by the documentation for your lightbox, don't you think? Silverstripe doesn't care what Javascript plugins you use.

There are a number of ways to generate thumbnails. The easiest way is $YourImage.SetWidth(100), but there are other GD functions available for different resampling processes.