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?


Reply


2 Posts   1057 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

2 April 2010 at 1:53pm

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

2 April 2010 at 4:46pm

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.