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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

If you run into problems using Lightbox2 with SS, look here...


Go to End


2 Posts   1237 Views

Avatar
SilverRay

Community Member, 167 Posts

17 December 2007 at 7:50pm

Edited: 17/12/2007 7:51pm

I tried to use Lightbox2:

http://www.huddletogether.com/projects/lightbox2/

with SS generated pages and ran into problems. The thing just wouldn't work. HTML, linked script and css files all seemed correct. The strange thing was, if I placed a file with exactly the same HTML code outside the cms system (copied from the source view of a SS generated page), it would work! On a Mac, the generated page would give javascript errors both in Safari and Firefox; but with IE6 on XP there would be no problem, both the static and generated page worked! (Normally it is the other way around ;)

A very strange situation indeed.

With the help of one of the forum members, DesignCity (thanks again), the solution was found: just place ContentNegotiator::disable() in the config file. It seems that the ContentNegotiator tries to do strange things with Safari...

Perhaps other people ran into this as well, so this might help you a little bit more in the right direction. If you have any questions, let me know.

Thanks,
- Ray.

(Edited for spelling)

Avatar
Fuzz10

Community Member, 791 Posts

20 December 2007 at 3:16am

Edited: 20/12/2007 3:16am