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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

How to get lightbox working with SS?


Go to End


2 Posts   1440 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, 4102 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.