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.

Archive /

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

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

Lightbox v2.04 Issue - Not linking


Go to End


3 Posts   2100 Views

Avatar
iON creative

Community Member, 42 Posts

22 September 2008 at 8:42pm

Hi all

I've been attempting to incorporate Lightbox v2.04 into a page type for my site and although all the paths are correct there is no link from the image to the lightbox enlargement - nothing happens when you click on the image.

I'm stumped - is there anyone with experience in this?
http://www.patriceguilbert.com/cms/illustrations-4/

Many thanks, Jayne

Avatar
Willr

Forum Moderator, 5523 Posts

22 September 2008 at 9:01pm

Have a look at the FireBug plugin for firefox - it helps debug situations like this! As you can see if you have it installed you have 2 errors, One is that you have tried to do a document.write() for the javascript and your page doctype doesnt support document.write() (as you are sending the page as super strict XML - the <? xml.. bit at the top of your page.ss file) .

Get rid of that <? xml bit and see if that works

Avatar
iON creative

Community Member, 42 Posts

22 September 2008 at 9:04pm

You beauty - that did the trick! I didn't even think of the doctype.

Many many thanks! Jayne.